Class OrderExpression
java.lang.Object
org.datanucleus.store.query.expression.Expression
org.datanucleus.store.query.expression.OrderExpression
- All Implemented Interfaces:
Serializable
Expression as part of an ordering clause. Composed of an expression and an order direction.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.DyadicOperator, Expression.MonadicOperator, Expression.Operator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NullOrderingTypeOptional specification for null ordering.private static final longprivate StringFields inherited from class Expression
alias, left, op, OP_ADD, OP_AND, OP_BIT_AND, OP_BIT_OR, OP_BIT_XOR, OP_CAST, OP_COM, OP_CONCAT, OP_DISTINCT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_NOTIN, OP_OR, OP_SUB, parent, right, symbol -
Constructor Summary
ConstructorsConstructorDescriptionOrderExpression(Expression expr) OrderExpression(Expression expr, String sortOrder) Constructor.OrderExpression(Expression expr, String sortOrder, String nullOrder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbind(SymbolTable symtbl) Method to bind the expression to the symbol table as appropriate.evaluate(ExpressionEvaluator eval) Method to evaluate this expression, using the passed evaluator.toString()Methods inherited from class Expression
getAlias, getLeft, getOperator, getParent, getRight, getSymbol, setAlias, setLeft, setRight
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
sortOrder
-
nullOrder
Optional specification for null ordering.
-
-
Constructor Details
-
OrderExpression
Constructor.- Parameters:
expr- The expression to order bysortOrder- The order (either "ascending" or "descending")nullOrder- The null order (either "nulls first" or "nulls last")
-
OrderExpression
Constructor.- Parameters:
expr- The expression to order bysortOrder- The order (either "ascending" or "descending")
-
OrderExpression
-
-
Method Details
-
getSortOrder
-
getNullOrder
-
bind
Description copied from class:ExpressionMethod to bind the expression to the symbol table as appropriate.- Specified by:
bindin classExpression- Parameters:
symtbl- Symbol table- Returns:
- The symbol for this expression
-
evaluate
Description copied from class:ExpressionMethod to evaluate this expression, using the passed evaluator.- Overrides:
evaluatein classExpression- Parameters:
eval- Evaluator- Returns:
- The result
-
toString
-