|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Instances of classes implementing this interface represent the root of a query tree. You can use these intances to factorize this node's children, as there are candidate class, declarations, filter expression and ordering expressions as children.
Method Summary | |
void |
addAscendingOrdering(Expression expression)
Adds an ascending ordering expression to this query tree. |
void |
addDescendingOrdering(Expression expression)
Adds an descending ordering expression to this query tree. |
void |
declareParameter(java.lang.Class type,
java.lang.String parameter)
Declares a parameter for this query tree. |
void |
declareVariable(java.lang.Class type,
java.lang.String variable)
Declares a variable for this query tree. |
java.lang.Class |
getCandidateClass()
Returns the candidate class. |
java.util.Map |
getDeclaredParameters()
Returns a map containing all declared parameters. |
java.util.List |
getDeclaredParametersAsList()
Returns a list of all declared parameters. |
java.util.Map |
getDeclaredVariables()
Returns a map containing all declared variables. |
Expression |
getFilter()
Returns the filter expression of this query tree. |
java.util.List |
getOrderingExpressions()
Returns a list of all added ordering expressions. |
void |
setCandidateClass(java.lang.Class clazz)
Sets the candidate class for this query tree. |
void |
setFilter(Expression filter)
Sets the filter expression for this query tree. |
Methods inherited from interface org.apache.jdo.jdoql.tree.ExpressionFactory |
newAnd, newCast, newComplement, newConditionalAnd, newConditionalOr, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newDivide, newEquals, newFieldAccess, newFieldAccess, newGreaterThan, newGreaterThanEquals, newIdentifier, newLessThan, newLessThanEquals, newMethodCall, newMinus, newMinus, newNot, newNotEquals, newOr, newPlus, newPlus, newTimes |
Methods inherited from interface org.apache.jdo.jdoql.tree.Node |
arrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChild |
Method Detail |
public void setCandidateClass(java.lang.Class clazz)
clazz
- the candidate classpublic void declareParameter(java.lang.Class type, java.lang.String parameter)
newIdentifier
.
type
- the instance of a Java class which is the type of the declared parameterparameter
- the name of the declared parameterpublic void declareVariable(java.lang.Class type, java.lang.String variable)
newIdentifier
.
type
- the instance of a Java class which is the type of the declared variablevariable
- the name of the declared variablepublic void setFilter(Expression filter)
filter
- the filter expressionpublic void addAscendingOrdering(Expression expression)
expression
- the order expressionpublic void addDescendingOrdering(Expression expression)
expression
- the order expressionpublic java.lang.Class getCandidateClass()
public java.util.Map getDeclaredParameters()
ParameterDeclaration
as values.
public java.util.Map getDeclaredVariables()
VariableDeclaration
as values.
public java.util.List getDeclaredParametersAsList()
declareParameter
.
This list contains instances of
ParametersDeclaration
as entries.
public Expression getFilter()
public java.util.List getOrderingExpressions()
addAscendingOrdering
and addDescendingOrdering
.
This list contains instances of
OrderingExpression
as entries.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |