java.lang.Object
java.lang.Record
org.litebridge.orm.api.select.ast.SetNode
- Record Components:
previous- the previous node in the chaincolumn- the column to updatevalue- the value to set (can be a raw value or aMathOperation)bindValue- whether the value should be bound as a parameter
- All Implemented Interfaces:
QueryNode
public record SetNode(@Nullable QueryNode previous, Column column, @Nullable Object value, boolean bindValue)
extends Record
implements QueryNode
Represents a SET clause in an UPDATE statement in the query AST.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebindValuerecord component.column()Returns the value of thecolumnrecord 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.@Nullable Objectvalue()Returns the value of thevaluerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
bindValue
public boolean bindValue()Returns the value of thebindValuerecord component.- Returns:
- the value of the
bindValuerecord component
-