Class ConditionExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.ConditionExp
- All Implemented Interfaces:
XMLSerializable
- Direct Known Subclasses:
AllExp, AnyExp, BetweenExp, EqualExp, ExistsExp, FalseExp, GreaterExp, GreaterOrEqualExp, InExp, LessExp, LessOrEqualExp, NotBetweenExp, NotEqualExp, NotExistsExp, NotInExp, PatternMatchExp, TrueExp
public abstract sealed class ConditionExp
extends Expression
permits AllExp, AnyExp, BetweenExp, EqualExp, ExistsExp, FalseExp, GreaterExp, GreaterOrEqualExp, InExp, LessExp, LessOrEqualExp, NotBetweenExp, NotEqualExp, NotExistsExp, NotInExp, PatternMatchExp, TrueExp
Superclass of conditional expressions.
- 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 abstract BooleanevaluateSubNode(Object o, Object[] evaluatedChildren) exists()Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).protected abstract intprotected booleanisValidParent(Expression parent) Whether this node can be an operand of the given node.Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).Methods inherited from class Expression
andExp, andExp, appendAsString, appendOperandAsString, deepCopy, encodeAsXML, equals, evaluate, evaluateOperand, expName, filter, filterObjects, first, flattenTree, getExpressionOperator, getOperand, getOperandCount, getPathAliases, hashCode, match, notExp, orExp, orExp, params, params, paramsArray, parenthesizeAsOperand, pruneNodeForPrunedChild, setOperand, setOperands, shallowCopy, toString, transform, transformExpression, traverse, traverse
-
Constructor Details
-
ConditionExp
-
-
Method Details
-
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 classExpression
-
evaluateNode
Description copied from class:ExpressionEvaluates itself with object, pushing result on the stack.- Specified by:
evaluateNodein classExpression- Throws:
Exception
-
getRequiredChildrenCount
protected abstract int getRequiredChildrenCount() -
evaluateSubNode
-
exists
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).- Overrides:
existsin classExpression- Returns:
- exists expression
- See Also:
-
notExists
Returns expression that will be dynamically resolved to proper subqueries based on a relationships used (if no relationships are present in the original expression no subqueries will be used).- Overrides:
notExistsin classExpression- Returns:
- not exists expression
- See Also:
-