java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.WhenNotMatchedNode
- Record Components:
previous- the previous node in the chainand- AND condition to apply to the WHEN NOT MATCHED clauseinsert- INSERT clause to apply to the WHEN NOT MATCHED clause
- All Implemented Interfaces:
QueryNode
public record WhenNotMatchedNode(QueryNode previous, @Nullable QueryNode and, QueryNode insert)
extends Record
implements QueryNode
Represents a WHEN NOT MATCHED clause in a MERGE statement in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionWhenNotMatchedNode(QueryNode previous, @Nullable QueryNode and, QueryNode insert) Creates an instance of aWhenNotMatchedNoderecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable QueryNodeand()Returns the value of theandrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.insert()Returns the value of theinsertrecord component.previous()Returns the value of thepreviousrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
previous
Returns the value of thepreviousrecord component. -
and
Returns the value of theandrecord component.- Returns:
- the value of the
andrecord component
-
insert
Returns the value of theinsertrecord component.- Returns:
- the value of the
insertrecord component
-