|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An RdbQueryLeaf represents a query leaf which encapsulates access to a relational database.
A SQL query is associated to an RdbQueryLeaf.
RdbExpQueryLeaf
,
RdbStringQueryLeaf
Method Summary | |
java.lang.String |
getSelectList(java.lang.String selectList,
java.util.ArrayList selectFields,
boolean qualified)
|
java.lang.String |
getSqlRequest(ParameterOperand[] pos)
Returns the associated SQL query. |
java.lang.String |
getSqlRequest(ParameterOperand[] pos,
java.util.ArrayList selectFields)
Returns the associated SQL query. |
boolean |
isSubquery()
Is the current query leaf a subquery (in particular for the case of aggregates). |
void |
setIsSubquery(boolean subquery)
Indicates whether the current RdbExpQueryLeaf is a subquery of another Rdb query leaf (in particular in the case of subqueries). |
Methods inherited from interface org.objectweb.medor.query.api.QueryLeaf |
getDataStore |
Methods inherited from interface org.objectweb.medor.query.api.QueryTree |
getDistinct, getName, getOrderBy, getTupleStructure, setDistinct, setOrderBy |
Method Detail |
public java.lang.String getSqlRequest(ParameterOperand[] pos, java.util.ArrayList selectFields) throws MedorException
n the case of an RdbExpQueryLeaf, the query is computed.
MedorException
- in the case of RdbExpQueryLeaves if the
SQL request cannot be computed from the associated Expressionpublic java.lang.String getSqlRequest(ParameterOperand[] pos) throws MedorException
In the case of an RdbExpQueryLeaf, the query is computed.
MedorException
- in the case of RdbExpQueryLeaves if the
SQL request cannot be computed from the associated Expressionpublic java.lang.String getSelectList(java.lang.String selectList, java.util.ArrayList selectFields, boolean qualified) throws MedorException
MedorException
public boolean isSubquery()
public void setIsSubquery(boolean subquery)
The default value is false.
subquery
- is true when the current RdbExpQueryLeaf is a subquery
of another Rdb query leaf/node, false otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |