Interface DeleteService
- All Known Implementing Classes:
DeleteServiceImpl
public interface DeleteService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Contains a deleted entity and all its referenced entities that would be affected by a cascading delete. -
Method Summary
Modifier and TypeMethodDescriptioncreateDeletionData
(EntityModel model, List<PrimaryKey> keys) Returns a report that contains information whether the the given entities may be deleted using a cascading delete.deleteEntities
(EntityModel model, List<PrimaryKey> keys) Deletes all entities which are part of the deletion set created bycreateDeletionData(EntityModel, List)
.deleteEntity
(Entity entity) Deletes an entity.getPartitionedTask
(EntityModel model)
-
Method Details
-
createDeletionData
Map<EntityId,DeleteService.EntityDeletionData> createDeletionData(EntityModel model, List<PrimaryKey> keys) Returns a report that contains information whether the the given entities may be deleted using a cascading delete. The report also contains all entities that would be additionally deleted and all entities that would block the cascading delete.- Parameters:
model
- the entity modelkeys
- keys of all entities that should be deleted.
-
deleteEntities
Deletes all entities which are part of the deletion set created bycreateDeletionData(EntityModel, List)
.- Throws:
DeleteException
- if the deletion set contains blocking entities, or read/delete permissions are missing
-
deleteEntity
Deletes an entity.- Throws:
DeleteException
- if the deletion set contains blocking entities, or read/delete permissions are missing
-
getPartitionedTask
-