Record Class CollectionMutationPlanContributor.ValueChangeContext
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.decompose.collection.CollectionMutationPlanContributor.ValueChangeContext
- Record Components:
persister- The collection persister whose row value changed.tableDescriptor- The physical table descriptor used by the row update plan.jdbcOperations- The decomposer's JDBC operation bundle for this table shape.collection- The persistent collection instance.key- The collection key.ordinalBase- The graph ordinal base assigned to the enclosing action.session- The active session.valueChange- The logical value change.
- Enclosing interface:
CollectionMutationPlanContributor
public static record CollectionMutationPlanContributor.ValueChangeContext(CollectionPersister persister, TableDescriptor tableDescriptor, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, int ordinalBase, SharedSessionContractImplementor session, CollectionChangeSet.ValueChange valueChange)
extends Record
Context passed to
CollectionMutationPlanContributor.contributeValueChange(ValueChangeContext, Consumer).- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionValueChangeContext(CollectionPersister persister, TableDescriptor tableDescriptor, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, int ordinalBase, SharedSessionContractImplementor session, CollectionChangeSet.ValueChange valueChange) Creates an instance of aValueChangeContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejdbcOperationsrecord component.key()Returns the value of thekeyrecord component.intReturns the value of theordinalBaserecord component.Returns the value of thepersisterrecord component.session()Returns the value of thesessionrecord component.Returns the value of thetableDescriptorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueChangerecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
persister
-
tableDescriptor
Returns the value of thetableDescriptorrecord component.- Returns:
- the value of the
tableDescriptorrecord component
-
jdbcOperations
Returns the value of thejdbcOperationsrecord component.- Returns:
- the value of the
jdbcOperationsrecord component
-
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
key
-
ordinalBase
public int ordinalBase()Returns the value of theordinalBaserecord component.- Returns:
- the value of the
ordinalBaserecord component
-
session
-
valueChange
Returns the value of thevalueChangerecord component.- Returns:
- the value of the
valueChangerecord component
-