java.lang.Object
org.litebridge.orm.engine.ast.WhereNode
- All Implemented Interfaces:
QueryNode
Represents a WHERE clause condition in the query AST.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the conditions associated with the WHERE clause.booleaninthashCode()@Nullable QueryNodeprevious()Returns the previous node in the chain, ornullif this is the root node.toString()withCondition(QueryNode condition) Sets the conditions for this WHERE clause, by replacing the current condition.
-
Constructor Details
-
WhereNode
Constructs a newWhereNodeinstance.- Parameters:
previous- the previous node in the chaincondition- the last embedded condition node for this node
-
-
Method Details
-
previous
Description copied from interface:QueryNodeReturns the previous node in the chain, ornullif this is the root node. -
condition
Returns the conditions associated with the WHERE clause.This is represented as a chained link of query nodes; the last node in the chain is returned.
- Returns:
- the last condition node
-
equals
-
hashCode
public int hashCode() -
toString
-
withCondition
Sets the conditions for this WHERE clause, by replacing the current condition.- Parameters:
condition- the new condition node- Returns:
- this node, for method chaining
-