java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.MergeNode
- Record Components:
table- the table to updatedtoClass- class of the DTO to update
- All Implemented Interfaces:
QueryNode
public record MergeNode(@Nullable String table, @Nullable Class<?> dtoClass, @Nullable Class<?> contextDtoClass, @Nullable String alias)
extends Record
implements QueryNode
Represents a MERGE INTO statement in the query AST.
This is a root node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.@Nullable Class<?> Returns the value of thecontextDtoClassrecord component.@Nullable Class<?> dtoClass()Returns the value of thedtoClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable QueryNodeprevious()Returns the previous node in the chain, ornullif this is the root node.@Nullable Stringtable()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
previous
Description copied from interface:QueryNodeReturns the previous node in the chain, ornullif this is the root node. -
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). -
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
-
contextDtoClass
Returns the value of thecontextDtoClassrecord component.- Returns:
- the value of the
contextDtoClassrecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-