Class RemoveCoordinatorTablePerSubclass
- java.lang.Object
-
- org.hibernate.persister.collection.mutation.RemoveCoordinatorTablePerSubclass
-
- All Implemented Interfaces:
CollectionOperationCoordinator
,RemoveCoordinator
public class RemoveCoordinatorTablePerSubclass extends Object implements RemoveCoordinator
OneToMany remove coordinator if the element is aUnionSubclassEntityPersister
.
-
-
Constructor Summary
Constructors Constructor Description RemoveCoordinatorTablePerSubclass(OneToManyPersister 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
-
RemoveCoordinatorTablePerSubclass
public RemoveCoordinatorTablePerSubclass(OneToManyPersister 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
-
-