Class HavingNode

java.lang.Object
org.litebridge.orm.api.select.ast.HavingNode
All Implemented Interfaces:
QueryNode

public final class HavingNode extends Object implements QueryNode
HAVING clause condition in the query AST.
  • Constructor Details

    • HavingNode

      public HavingNode(@Nullable QueryNode previous, QueryNode condition)
      Creates a new HavingNode instance.
      Parameters:
      previous - the previous node in the chain
      condition - the last embedded condition node for this node
  • Method Details

    • previous

      public @Nullable QueryNode previous()
      Description copied from interface: QueryNode
      Returns the previous node in the chain, or null if this is the root node.
      Specified by:
      previous in interface QueryNode
      Returns:
      the previous node
    • condition

      public QueryNode condition()
      Returns the HAVING condition node.
      Returns:
      the condition node
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withCondition

      public HavingNode withCondition(QueryNode condition)
      Sets the HAVING condition node.
      Parameters:
      condition - the condition node to set
      Returns:
      this having node instance