Class RemoveCoordinatorStandard
- java.lang.Object
-
- org.hibernate.persister.collection.mutation.RemoveCoordinatorStandard
-
- All Implemented Interfaces:
CollectionOperationCoordinator
,RemoveCoordinator
public class RemoveCoordinatorStandard extends Object implements RemoveCoordinator
Handles complete removal of a collection by its key
-
-
Constructor Summary
Constructors Constructor Description RemoveCoordinatorStandard(CollectionMutationTarget mutationTarget, OperationProducer operationProducer, ServiceRegistry serviceRegistry)
Creates the coordinator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAllRows(Object key, SharedSessionContractImplementor session)
Delete all rows based on the collection-keyCollectionMutationTarget
getMutationTarget()
The collection being mutatedString
getSqlString()
The SQL used to perform the removalString
toString()
-
-
-
Constructor Detail
-
RemoveCoordinatorStandard
public RemoveCoordinatorStandard(CollectionMutationTarget mutationTarget, OperationProducer operationProducer, ServiceRegistry serviceRegistry)
Creates the coordinator.- Implementation Note:
- We pass a Supplier here and lazily create the operation-group because of timing (chicken-egg) back on the persister.
-
-
Method Detail
-
getMutationTarget
public CollectionMutationTarget getMutationTarget()
Description copied from interface:CollectionOperationCoordinator
The collection being mutated- Specified by:
getMutationTarget
in interfaceCollectionOperationCoordinator
-
getSqlString
public String getSqlString()
Description copied from interface:RemoveCoordinator
The SQL used to perform the removal- Specified by:
getSqlString
in interfaceRemoveCoordinator
-
deleteAllRows
public void deleteAllRows(Object key, SharedSessionContractImplementor session)
Description copied from interface:RemoveCoordinator
Delete all rows based on the collection-key- Specified by:
deleteAllRows
in interfaceRemoveCoordinator
-
-