java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.ConditionJoinUsingNode
- Record Components:
previous- the previous node in the chainlogicOperator- the logic operator (AND/OR)usingColumn- the column to join onusingExpression- the expression to join on
- All Implemented Interfaces:
ConditionQueryNode,QueryNode
public record ConditionJoinUsingNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String usingColumn, @Nullable ExpressionSpec usingExpression)
extends Record
implements ConditionQueryNode
Represents a JOIN USING condition in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionConditionJoinUsingNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String usingColumn, @Nullable ExpressionSpec usingExpression) Creates an instance of aConditionJoinUsingNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of thelogicOperatorrecord component.@Nullable QueryNodeprevious()Returns the value of thepreviousrecord component.final StringtoString()Returns a string representation of this record class.@Nullable StringReturns the value of theusingColumnrecord component.@Nullable ExpressionSpecReturns the value of theusingExpressionrecord component.
-
Constructor Details
-
ConditionJoinUsingNode
public ConditionJoinUsingNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String usingColumn, @Nullable ExpressionSpec usingExpression) Creates an instance of aConditionJoinUsingNoderecord class.- Parameters:
previous- the value for thepreviousrecord componentlogicOperator- the value for thelogicOperatorrecord componentusingColumn- the value for theusingColumnrecord componentusingExpression- the value for theusingExpressionrecord component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
previous
Returns the value of thepreviousrecord component. -
logicOperator
Returns the value of thelogicOperatorrecord component.- Returns:
- the value of the
logicOperatorrecord component
-
usingColumn
Returns the value of theusingColumnrecord component.- Returns:
- the value of the
usingColumnrecord component
-
usingExpression
Returns the value of theusingExpressionrecord component.- Returns:
- the value of the
usingExpressionrecord component
-