Record Class CollectionMutationPlanContributor.CollectionChangeContext
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.decompose.collection.CollectionMutationPlanContributor.CollectionChangeContext
- Record Components:
persister- The collection persister whose logical collection changed.tableDescriptor- The collection table descriptor for the logical collection role.factory- The session factory.jdbcOperations- The decomposer's JDBC operation bundle, when a single bundle applies.collection- The persistent collection instance.key- The collection key.ordinalBase- The graph ordinal base assigned to the enclosing action.
- Enclosing interface:
CollectionMutationPlanContributor
public static record CollectionMutationPlanContributor.CollectionChangeContext(CollectionPersister persister, CollectionTableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, int ordinalBase)
extends Record
Context passed to
CollectionMutationPlanContributor.contributeCollectionChange(CollectionChangeContext, Consumer).- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionChangeContext(CollectionPersister persister, CollectionTableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, int ordinalBase) Creates an instance of aCollectionChangeContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.factory()Returns the value of thefactoryrecord component.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.Returns the value of thetableDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionChangeContext
public CollectionChangeContext(CollectionPersister persister, CollectionTableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, int ordinalBase) Creates an instance of aCollectionChangeContextrecord class.- Parameters:
persister- the value for thepersisterrecord componenttableDescriptor- the value for thetableDescriptorrecord componentfactory- the value for thefactoryrecord componentjdbcOperations- the value for thejdbcOperationsrecord componentcollection- the value for thecollectionrecord componentkey- the value for thekeyrecord componentordinalBase- the value for theordinalBaserecord component
-
-
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
-
factory
-
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
-