java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.UsingNode
- Record Components:
previous- The rootMergeNodefor the MERGE INTO statementtable- The name of the table to merge intodtoClass- The DTO class to merge intoon- AST nodes representing the condition(s) to use for matching rows
- All Implemented Interfaces:
QueryNode
public record UsingNode(MergeNode previous, @Nullable String table, @Nullable Class<?> dtoClass, @Nullable QueryNode query, @Nullable ValuesSpec values, @Nullable String alias, QueryNode on)
extends Record
implements QueryNode
Represents a USING clause in a MERGE statement in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionUsingNode(MergeNode previous, @Nullable String table, @Nullable Class<?> dtoClass, @Nullable QueryNode query, @Nullable ValuesSpec values, @Nullable String alias, QueryNode on) Creates an instance of aUsingNoderecord class.UsingNode(MergeNode previous, ValuesSpec values, @Nullable String alias, QueryNode on) -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.@Nullable Class<?> dtoClass()Returns the value of thedtoClassrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.on()Returns the value of theonrecord component.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodequery()Returns the value of thequeryrecord component.@Nullable Stringtable()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.@Nullable ValuesSpecvalues()Returns the value of thevaluesrecord component.
-
Constructor Details
-
UsingNode
-
UsingNode
-
UsingNode
public UsingNode(MergeNode previous, @Nullable String table, @Nullable Class<?> dtoClass, @Nullable QueryNode query, @Nullable ValuesSpec values, @Nullable String alias, QueryNode on) Creates an instance of aUsingNoderecord class.- Parameters:
previous- the value for thepreviousrecord componenttable- the value for thetablerecord componentdtoClass- the value for thedtoClassrecord componentquery- the value for thequeryrecord componentvalues- the value for thevaluesrecord componentalias- the value for thealiasrecord componenton- the value for theonrecord 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. -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
dtoClass
Returns the value of thedtoClassrecord component.- Returns:
- the value of the
dtoClassrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
on
Returns the value of theonrecord component.- Returns:
- the value of the
onrecord component
-