|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.instruction.Adapter
com.hardcode.gdbms.engine.instruction.SelectAdapter
public class SelectAdapter
Adapta el nodo que representa una instrucción select en el árbol sintáctico de entrada
Field Summary | |
---|---|
static int |
ORDER_ASC
|
static int |
ORDER_DESC
|
static int |
ORDER_NONE
|
Constructor Summary | |
---|---|
SelectAdapter()
|
Method Summary | |
---|---|
DataSource |
getDataSource()
Obtiene el origen de datos para los campos a la hora de evaluar las expresiones |
java.lang.String |
getFieldName(int index)
Gets the name of the order field in the index-th criterion. |
java.lang.String[] |
getFieldsAlias()
Obtiene el alias de los campos. |
Expression[] |
getFieldsExpression()
Obtiene las expresiones de los campos de la cláusula SELECT o null si hay un ''. |
int |
getOrder(int index)
Gets a constant indicating ascendent or descendent for the index-th criterion. |
int |
getOrderCriterionCount()
Gets the number of fields specified in the orderby clause or 0 if there is no such clause |
DataSource[] |
getTables()
Obtiene las tablas de la cláusula FROM de la instrucción |
Expression |
getWhereExpression()
|
boolean |
isDistinct()
Devuelve true si la palabra clave DISTINCT se usó y false en caso contrario |
void |
setDataSource(DataSource source)
Establece el origen de datos para los campos a la hora de evaluar las expresiones |
void |
setTables(DataSource[] tables)
|
Methods inherited from class com.hardcode.gdbms.engine.instruction.Adapter |
---|
getChilds, getEntity, getInstructionContext, getParent, replaceChild, setChilds, setEntity, setInstructionContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ORDER_ASC
public static final int ORDER_DESC
public static final int ORDER_NONE
Constructor Detail |
---|
public SelectAdapter()
Method Detail |
---|
public DataSource[] getTables() throws com.hardcode.driverManager.DriverLoadException, NoSuchTableException, DataSourceCreationException
SemanticException
- Si se produce un error semántico
NoSuchTableException
CreationException
com.hardcode.driverManager.DriverLoadException
DriverException
DataSourceCreationException
public Expression[] getFieldsExpression()
public java.lang.String[] getFieldsAlias()
public boolean isDistinct()
public int getOrderCriterionCount()
public java.lang.String getFieldName(int index)
index
- index of the order criterion to be guessed
public int getOrder(int index)
index
- index of the order criterion to be guessed
public void setTables(DataSource[] tables)
com.hardcode.gdbms.engine.instruction.SelectInstruction#setTables(com.hardcode.gdbms.engine.data.DataSource[])
public DataSource getDataSource()
public void setDataSource(DataSource source)
source
- public Expression getWhereExpression()
com.hardcode.gdbms.engine.instruction.SelectInstruction#getWhereExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |