Record Class InlineUpdateHandler.TableUpdater
java.lang.Object
java.lang.Record
org.hibernate.query.sqm.mutation.internal.inline.InlineUpdateHandler.TableUpdater
- Enclosing class:
InlineUpdateHandler
protected static record InlineUpdateHandler.TableUpdater(UpdateStatement updateStatement, @Nullable InsertSelectStatement nullableInsert, Supplier<Consumer<SelectableConsumer>> tableKeyColumnVisitationSupplier)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TableUpdater
(UpdateStatement updateStatement, @Nullable InsertSelectStatement nullableInsert, Supplier<Consumer<SelectableConsumer>> tableKeyColumnVisitationSupplier) Creates an instance of aTableUpdater
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable InsertSelectStatement
Returns the value of thenullableInsert
record component.Returns the value of thetableKeyColumnVisitationSupplier
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theupdateStatement
record component.
-
Constructor Details
-
TableUpdater
protected TableUpdater(UpdateStatement updateStatement, @Nullable InsertSelectStatement nullableInsert, Supplier<Consumer<SelectableConsumer>> tableKeyColumnVisitationSupplier) Creates an instance of aTableUpdater
record class.- Parameters:
updateStatement
- the value for theupdateStatement
record componentnullableInsert
- the value for thenullableInsert
record componenttableKeyColumnVisitationSupplier
- the value for thetableKeyColumnVisitationSupplier
record 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)
. -
updateStatement
Returns the value of theupdateStatement
record component.- Returns:
- the value of the
updateStatement
record component
-
nullableInsert
Returns the value of thenullableInsert
record component.- Returns:
- the value of the
nullableInsert
record component
-
tableKeyColumnVisitationSupplier
Returns the value of thetableKeyColumnVisitationSupplier
record component.- Returns:
- the value of the
tableKeyColumnVisitationSupplier
record component
-