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 voiddeleteAllRows(Object key, SharedSessionContractImplementor session)Delete all rows based on the collection-keyCollectionMutationTargetgetMutationTarget()The collection being mutatedStringgetSqlString()The SQL used to perform the removalStringtoString()
-
-
-
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:CollectionOperationCoordinatorThe collection being mutated- Specified by:
getMutationTargetin interfaceCollectionOperationCoordinator
-
getSqlString
public String getSqlString()
Description copied from interface:RemoveCoordinatorThe SQL used to perform the removal- Specified by:
getSqlStringin interfaceRemoveCoordinator
-
deleteAllRows
public void deleteAllRows(Object key, SharedSessionContractImplementor session)
Description copied from interface:RemoveCoordinatorDelete all rows based on the collection-key- Specified by:
deleteAllRowsin interfaceRemoveCoordinator
-
-