Class AbstractDeleteCoordinator
- java.lang.Object
-
- org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
-
- org.hibernate.persister.entity.mutation.AbstractDeleteCoordinator
-
- All Implemented Interfaces:
DeleteCoordinator
,MutationCoordinator
- Direct Known Subclasses:
DeleteCoordinatorSoft
,DeleteCoordinatorStandard
public abstract class AbstractDeleteCoordinator extends AbstractMutationCoordinator implements DeleteCoordinator
Template support for DeleteCoordinator implementations. Mainly centers around delegation via generateOperationGroup(java.lang.Object, java.lang.Object[], boolean, org.hibernate.engine.spi.SharedSessionContractImplementor).
-
-
Field Summary
-
Fields inherited from class org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
dialect, entityPersister, factory, mutationExecutorService
-
-
Constructor Summary
Constructors Constructor Description AbstractDeleteCoordinator(AbstractEntityPersister entityPersister, SessionFactoryImplementor factory)
-
Method Summary
-
Methods inherited from class org.hibernate.persister.entity.mutation.AbstractMutationCoordinator
applyKeyRestriction, bindPartitionColumnValueBindings, breakDownKeyJdbcValues, createOperationGroup, dialect, entityPersister, factory, handleValueGeneration, needsRowId, resolveBatchKeyAccess
-
-
-
-
Constructor Detail
-
AbstractDeleteCoordinator
public AbstractDeleteCoordinator(AbstractEntityPersister entityPersister, SessionFactoryImplementor factory)
-
-
Method Detail
-
getStaticMutationOperationGroup
public MutationOperationGroup getStaticMutationOperationGroup()
Description copied from interface:MutationCoordinator
The operation group used to perform the mutation unless some form of dynamic mutation is necessary.- Specified by:
getStaticMutationOperationGroup
in interfaceMutationCoordinator
-
getBatchKey
public BasicBatchKey getBatchKey()
- Specified by:
getBatchKey
in classAbstractMutationCoordinator
-
generateOperationGroup
protected abstract MutationOperationGroup generateOperationGroup(Object rowId, Object[] loadedState, boolean applyVersion, SharedSessionContractImplementor session)
-
delete
public void delete(Object entity, Object id, Object version, SharedSessionContractImplementor session)
Description copied from interface:DeleteCoordinator
Delete a persistent instance.- Specified by:
delete
in interfaceDeleteCoordinator
-
doDynamicDelete
protected void doDynamicDelete(Object entity, Object id, Object rowId, Object[] loadedState, SharedSessionContractImplementor session)
-
applyDynamicDeleteTableDetails
protected void applyDynamicDeleteTableDetails(Object id, Object rowId, Object[] loadedState, MutationExecutor mutationExecutor, MutationOperationGroup operationGroup, SharedSessionContractImplementor session)
-
applyLocking
protected void applyLocking(Object version, Object[] loadedState, MutationExecutor mutationExecutor, SharedSessionContractImplementor session)
-
applyId
protected void applyId(Object id, Object rowId, MutationExecutor mutationExecutor, MutationOperationGroup operationGroup, SharedSessionContractImplementor session)
-
doStaticDelete
protected void doStaticDelete(Object entity, Object id, Object rowId, Object[] loadedState, Object version, SharedSessionContractImplementor session)
-
applyStaticDeleteTableDetails
protected void applyStaticDeleteTableDetails(Object id, Object rowId, Object[] loadedState, Object version, boolean applyVersion, MutationExecutor mutationExecutor, SharedSessionContractImplementor session)
-
resolveNoVersionDeleteGroup
protected MutationOperationGroup resolveNoVersionDeleteGroup(SharedSessionContractImplementor session)
-
-