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

public class ExpressionNode extends Node
Since:
4.2
  • Constructor Details

    • ExpressionNode

      public ExpressionNode()
    • ExpressionNode

      public ExpressionNode(NodeType nodeType)
  • Method Details

    • append

      public SQLAppendable append(SQLAppendable buffer, SQLGenerationContext context)
      Specified by:
      append in class Node
    • appendChildrenStart

      public void appendChildrenStart(SQLAppendable buffer)
      Overrides:
      appendChildrenStart in class Node
    • appendChildrenEnd

      public void appendChildrenEnd(SQLAppendable buffer)
      Overrides:
      appendChildrenEnd in class Node
    • needsParentheses

      protected boolean needsParentheses()
    • logicalOperator

      protected String logicalOperator()
      Returns:
      "AND" or "OR" if this node is a logical connective, otherwise null.
    • isComparison

      protected boolean isComparison()
      Returns:
      true for comparison operators that bind tighter than AND/OR and therefore don't need parentheses when nested directly under them.
    • toString

      public String toString()
      Overrides:
      toString in class Node
    • copy

      public Node copy()
      Specified by:
      copy in class Node