Class SubqueryExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.SubqueryExp
- All Implemented Interfaces:
XMLSerializable
- Since:
- 5.0
-
Field Summary
Fields inherited from class Expression
operands, PRUNED_NODE -
Constructor Summary
ConstructorsConstructorDescriptionSubqueryExp(Object... operands) Creates a subquery node wrapping the given select, or an empty one without arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAsString(Appendable out) Appends own content as a String to the provided Appendable: the operands separated by the operator.protected 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.FluentSelect<?, ?> getQuery()protected booleanWhether this node is wrapped in parentheses when printed as an operand of another node.Creates a copy of this expression node, without copying children.Methods inherited from class Expression
andExp, andExp, appendOperandAsString, deepCopy, encodeAsXML, equals, evaluate, evaluateOperand, exists, expName, filter, filterObjects, first, flattenTree, getOperand, getOperandCount, getPathAliases, hashCode, isValidParent, match, notExists, notExp, orExp, orExp, params, params, paramsArray, pruneNodeForPrunedChild, setOperand, setOperands, toString, transform, transformExpression, traverse, traverse
-
Constructor Details
-
SubqueryExp
Creates a subquery node wrapping the given select, or an empty one without arguments.
-
-
Method Details
-
getExpressionOperator
Description copied from class:ExpressionReturns the operator printed between the operands, before the operand at the given index.- Specified by:
getExpressionOperatorin classExpression
-
evaluateNode
Description copied from class:ExpressionEvaluates itself with object, pushing result on the stack.- Specified by:
evaluateNodein classExpression
-
shallowCopy
Description copied from class:ExpressionCreates a copy of this expression node, without copying children.- Specified by:
shallowCopyin classExpression
-
appendAsString
Description copied from class:ExpressionAppends own content as a String to the provided Appendable: the operands separated by the operator.- Overrides:
appendAsStringin classExpression- Throws:
IOException
-
getQuery
-
parenthesizeAsOperand
protected boolean parenthesizeAsOperand()Description copied from class:ExpressionWhether this node is wrapped in parentheses when printed as an operand of another node. Compound nodes are, leaves and nodes with their own delimiters (function calls, lists) are not.- Overrides:
parenthesizeAsOperandin classExpression
-