Record Class CollectionJdbcOperations
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.decompose.collection.CollectionJdbcOperations
- Record Components:
insertRowPlan- Plan for inserting a single collection element rowupdateRowPlan- Plan for updating a single collection element rowupdateIndexPlan- Plan for updating the order/index column for a single collection element rowdeleteRowPlan- Plan for deleting a single collection element rowremoveOperation- Plan for removing all collection rows
@Incubating
public record CollectionJdbcOperations(CollectionMutationTarget target, TableDescriptor tableDescriptor, CollectionJdbcOperations.InsertRowPlan insertRowPlan, CollectionJdbcOperations.UpdateRowPlan updateRowPlan, CollectionJdbcOperations.UpdateRowPlan updateIndexPlan, CollectionJdbcOperations.DeleteRowPlan deleteRowPlan, MutationOperation removeOperation)
extends Record
Manages standard MutationOperation, as well as parameter binding details, for collection mutations.
Built by collection persisters for use in decomposers.
- Since:
- 8.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic interfacestatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionCollectionJdbcOperations(CollectionMutationTarget target, TableDescriptor tableDescriptor, CollectionJdbcOperations.InsertRowPlan insertRowPlan, CollectionJdbcOperations.UpdateRowPlan updateRowPlan, CollectionJdbcOperations.UpdateRowPlan updateIndexPlan, CollectionJdbcOperations.DeleteRowPlan deleteRowPlan, MutationOperation removeOperation) Creates an instance of aCollectionJdbcOperationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeleteRowPlanrecord 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 theinsertRowPlanrecord component.Returns the value of theremoveOperationrecord component.Returns the value of thetableDescriptorrecord component.target()Returns the value of thetargetrecord component.toString()Returns a string representation of this record class.Returns the value of theupdateIndexPlanrecord component.Returns the value of theupdateRowPlanrecord component.
-
Constructor Details
-
CollectionJdbcOperations
public CollectionJdbcOperations(CollectionMutationTarget target, TableDescriptor tableDescriptor, CollectionJdbcOperations.InsertRowPlan insertRowPlan, CollectionJdbcOperations.UpdateRowPlan updateRowPlan, CollectionJdbcOperations.UpdateRowPlan updateIndexPlan, CollectionJdbcOperations.DeleteRowPlan deleteRowPlan, MutationOperation removeOperation) Creates an instance of aCollectionJdbcOperationsrecord class.- Parameters:
target- the value for thetargetrecord componenttableDescriptor- the value for thetableDescriptorrecord componentinsertRowPlan- the value for theinsertRowPlanrecord componentupdateRowPlan- the value for theupdateRowPlanrecord componentupdateIndexPlan- the value for theupdateIndexPlanrecord componentdeleteRowPlan- the value for thedeleteRowPlanrecord componentremoveOperation- the value for theremoveOperationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
tableDescriptor
Returns the value of thetableDescriptorrecord component.- Returns:
- the value of the
tableDescriptorrecord component
-
insertRowPlan
Returns the value of theinsertRowPlanrecord component.- Returns:
- the value of the
insertRowPlanrecord component
-
updateRowPlan
Returns the value of theupdateRowPlanrecord component.- Returns:
- the value of the
updateRowPlanrecord component
-
updateIndexPlan
Returns the value of theupdateIndexPlanrecord component.- Returns:
- the value of the
updateIndexPlanrecord component
-
deleteRowPlan
Returns the value of thedeleteRowPlanrecord component.- Returns:
- the value of the
deleteRowPlanrecord component
-
removeOperation
Returns the value of theremoveOperationrecord component.- Returns:
- the value of the
removeOperationrecord component
-