Class WhenExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.AggregateConditionExp
org.apache.cayenne.exp.WhenExp
- All Implemented Interfaces:
XMLSerializable
"WHEN" part of the case-when expression.
- Since:
- 5.0
-
Field Summary
Fields inherited from class Expression
operands, PRUNED_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectEvaluates itself with object, pushing result on the stack.protected StringgetExpressionOperator(int index) Returns the operator printed between the operands, before the operand at the given index.protected booleanisValidParent(Expression parent) Whether this node can be an operand of the given node.Creates a copy of this expression node, without copying children.Methods inherited from class AggregateConditionExp
exists, notExists, pruneNodeForPrunedChild, setOperand, transformExpressionMethods inherited from class Expression
andExp, andExp, appendAsString, appendOperandAsString, deepCopy, encodeAsXML, equals, evaluate, evaluateOperand, expName, filter, filterObjects, first, flattenTree, getOperand, getOperandCount, getPathAliases, hashCode, match, notExp, orExp, orExp, params, params, paramsArray, parenthesizeAsOperand, setOperands, toString, transform, traverse, traverse
-
Constructor Details
-
WhenExp
-
-
Method Details
-
shallowCopy
Description copied from class:ExpressionCreates a copy of this expression node, without copying children.- Specified by:
shallowCopyin classExpression
-
getExpressionOperator
Description copied from class:ExpressionReturns the operator printed between the operands, before the operand at the given index.- Specified by:
getExpressionOperatorin classExpression
-
isValidParent
Description copied from class:ExpressionWhether this node can be an operand of the given node. Called by the parent when the operand is set, to check what the grammar can't: e.g. a condition can only be an operand of a condition aggregate. By default any parent is valid.- Overrides:
isValidParentin classAggregateConditionExp
-
evaluateNode
Description copied from class:ExpressionEvaluates itself with object, pushing result on the stack.- Specified by:
evaluateNodein classExpression- Throws:
Exception
-