Interface CollectionDecomposer
- All Known Subinterfaces:
OneToManyDecomposer
Decomposer for collection actions. Comes in 2 general flavors -
OneToManyDecomposerforone-to-manycollectionsBasicCollectionDecomposerforelement-collectionandmany-to-manycollections
Collection persisters construct their decomposers directly.
A decomposer owns collection delta discovery, operation ordering and
callback/event handling. State-management-specific SQL shape is isolated through
CollectionMutationPlanContributor: contributors may replace delete/remove
mutation plans, provide strategy-specific bind values and contribute alternate
operations for logical value changes. This keeps temporal, history-table and
audit behavior from being baked into the delta walking code.
- Since:
- 8.0
- See Also:
- API Note:
- This is just a marker interface mainly for some unified Javadoc.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecomposeQueuedOperations(org.hibernate.action.internal.QueuedOperationCollectionAction action, int ordinalBase, SharedSessionContractImplementor session, Consumer<FlushOperation> operationConsumer) Decomposes queued collection operations.voiddecomposeRecreate(org.hibernate.action.internal.CollectionRecreateAction action, int ordinalBase, SharedSessionContractImplementor session, DecompositionContext decompositionContext, Consumer<FlushOperation> operationConsumer) Decomposes collection (re)create actions.voiddecomposeRemove(org.hibernate.action.internal.CollectionRemoveAction action, int ordinalBase, SharedSessionContractImplementor session, DecompositionContext decompositionContext, Consumer<FlushOperation> operationConsumer) Decomposes collection removal ("delete all") operations.voiddecomposeUpdate(org.hibernate.action.internal.CollectionUpdateAction action, int ordinalBase, SharedSessionContractImplementor session, DecompositionContext decompositionContext, Consumer<FlushOperation> operationConsumer) Decomposes collection update actions.
-
Method Details