java.lang.Object
java.lang.Record
org.litebridge.orm.engine.ast.InsertValuesNode
- Record Components:
previous- the previous node in the chainvalues- values to insert
- All Implemented Interfaces:
QueryNode
public record InsertValuesNode(@Nullable QueryNode previous, @Nullable Object[] values)
extends Record
implements QueryNode
Represents a VALUES clause of an INSERT STATEMENT in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionInsertValuesNode(@Nullable QueryNode previous, @Nullable Object[] values) Creates an instance of aInsertValuesNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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.@Nullable Object[]values()Returns the value of thevaluesrecord component.
-
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. -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-