|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryTree
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 |
|---|
void setCandidateClass(java.lang.Class clazz)
clazz - the candidate class
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 parameter
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 variablevoid setFilter(Expression filter)
filter - the filter expressionvoid addAscendingOrdering(Expression expression)
expression - the order expressionvoid addDescendingOrdering(Expression expression)
expression - the order expressionjava.lang.Class getCandidateClass()
java.util.Map getDeclaredParameters()
ParameterDeclaration as values.
java.util.Map getDeclaredVariables()
VariableDeclaration as values.
java.util.List getDeclaredParametersAsList()
declareParameter.
This list contains instances of
ParametersDeclaration as entries.
Expression getFilter()
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 | |||||||||