java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.InsertDtoValuesNode
- Record Components:
previous- the previous node in the chaindto- the DTO instance to extract values to insert from
- All Implemented Interfaces:
QueryNode
public record InsertDtoValuesNode(@Nullable QueryNode previous, Object dto)
extends Record
implements QueryNode
Represents a VALUES clause of an INSERT STATEMENT in the query AST, specifically for extracting and inserting values from a DTO instance.
-
Constructor Summary
ConstructorsConstructorDescriptionInsertDtoValuesNode(@Nullable QueryNode previous, Object dto) Creates an instance of aInsertDtoValuesNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptiondto()Returns the value of thedtorecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@Nullable QueryNodeprevious()Returns the value of thepreviousrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
dto
Returns the value of thedtorecord component.- Returns:
- the value of the
dtorecord component
-