Record Class CollectionMutationPlanContributor.RowInsertContext
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.decompose.collection.CollectionMutationPlanContributor.RowInsertContext
- Record Components:
persister- The collection persister whose row is being inserted.tableDescriptor- The physical table descriptor used by the row insert plan.factory- The session factory.jdbcOperations- The decomposer's JDBC operation bundle for this table shape.collection- The persistent collection instance.key- The collection key.rowValue- The row value passed to the row insert bind plan.rowPosition- The row position passed to the row insert bind plan.ordinalBase- The graph ordinal base assigned to the enclosing action.
- Enclosing interface:
CollectionMutationPlanContributor
public static record CollectionMutationPlanContributor.RowInsertContext(CollectionPersister persister, TableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, int ordinalBase)
extends Record
Context passed to
CollectionMutationPlanContributor.contributeAdditionalInsert(RowInsertContext, Consumer).- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionRowInsertContext(CollectionPersister persister, TableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, int ordinalBase) Creates an instance of aRowInsertContextrecord 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.intReturns the value of therowPositionrecord component.rowValue()Returns the value of therowValuerecord component.Returns the value of thetableDescriptorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RowInsertContext
public RowInsertContext(CollectionPersister persister, TableDescriptor tableDescriptor, SessionFactoryImplementor factory, CollectionJdbcOperations jdbcOperations, PersistentCollection<?> collection, Object key, Object rowValue, int rowPosition, int ordinalBase) Creates an instance of aRowInsertContextrecord 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 componentrowValue- the value for therowValuerecord componentrowPosition- the value for therowPositionrecord 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
-
rowValue
-
rowPosition
public int rowPosition()Returns the value of therowPositionrecord component.- Returns:
- the value of the
rowPositionrecord component
-
ordinalBase
public int ordinalBase()Returns the value of theordinalBaserecord component.- Returns:
- the value of the
ordinalBaserecord component
-