Class ExpressionNode
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.Node
org.apache.cayenne.access.sqlbuilder.sqltree.ExpressionNode
- Direct Known Subclasses:
BetweenNode,BitwiseNotNode,EqualNode,LikeNode,NotEqualNode,OpExpressionNode
- Since:
- 4.2
-
Field Summary
Fields inherited from class org.apache.cayenne.access.sqlbuilder.sqltree.Node
children, childrenCount, parent, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(SQLAppendable buffer, SQLGenerationContext context) voidappendChildrenEnd(SQLAppendable buffer) voidappendChildrenStart(SQLAppendable buffer) copy()protected booleanprotected Stringprotected booleantoString()Methods inherited from class org.apache.cayenne.access.sqlbuilder.sqltree.Node
addChild, addChild, appendChildrenSeparator, deepCopy, deepEquals, equals, getChild, getChildrenCount, getParent, getType, hashCode, replaceChild, setParent, visit
-
Constructor Details
-
ExpressionNode
public ExpressionNode() -
ExpressionNode
-
-
Method Details
-
append
-
appendChildrenStart
- Overrides:
appendChildrenStartin classNode
-
appendChildrenEnd
- Overrides:
appendChildrenEndin classNode
-
needsParentheses
protected boolean needsParentheses() -
logicalOperator
- Returns:
"AND"or"OR"if this node is a logical connective, otherwisenull.
-
isComparison
protected boolean isComparison()- Returns:
- true for comparison operators that bind tighter than
AND/ORand therefore don't need parentheses when nested directly under them.
-
toString
-
copy
-