java.lang.Object
java.lang.Record
org.litebridge.db.spi.update.Merge.MergeUpdate
- Record Components:
columns- the columns to update
- All Implemented Interfaces:
Merge.WhenMatchedOperation
- Enclosing class:
Merge
public static record Merge.MergeUpdate(List<UpdateColumn> columns)
extends Record
implements Merge.WhenMatchedOperation
Logical representation of an
UPDATE in a merge WHEN MATCHED clause.-
Constructor Summary
ConstructorsConstructorDescriptionMergeUpdate(List<UpdateColumn> columns) Creates an instance of aMergeUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MergeUpdate
Creates an instance of aMergeUpdaterecord class.- Parameters:
columns- the value for thecolumnsrecord component
-
-
Method Details
-
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). -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-