Class OpExpressionNode
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.Node
org.apache.cayenne.access.sqlbuilder.sqltree.ExpressionNode
org.apache.cayenne.access.sqlbuilder.sqltree.OpExpressionNode
- Since:
- 4.2
-
Field Summary
Fields inherited from class Node
children, childrenCount, parent, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendChildrenSeparator(SQLAppendable buffer, int childInd) copy()booleangetOp()inthashCode()protected booleanprotected StringMethods inherited from class ExpressionNode
append, appendChildrenEnd, appendChildrenStart, needsParentheses, toStringMethods inherited from class Node
addChild, addChild, deepCopy, deepEquals, getChild, getChildrenCount, getParent, getType, replaceChild, setParent, visit
-
Constructor Details
-
OpExpressionNode
-
-
Method Details
-
appendChildrenSeparator
- Overrides:
appendChildrenSeparatorin classNode
-
logicalOperator
- Overrides:
logicalOperatorin classExpressionNode- Returns:
"AND"or"OR"if this node is a logical connective, otherwisenull.
-
isComparison
protected boolean isComparison()- Overrides:
isComparisonin classExpressionNode- Returns:
- true for comparison operators that bind tighter than
AND/ORand therefore don't need parentheses when nested directly under them.
-
copy
- Overrides:
copyin classExpressionNode
-
getOp
-
equals
-
hashCode
-