Class CascadeDeleteTask

java.lang.Object
ch.tocco.nice2.persist.entity.api.cascadingdelete.CascadeDeleteTask
All Implemented Interfaces:
OptionalTask<EntityList,List<EntityId>>, PersistTask<EntityList,List<EntityId>>, CascadeCommons

public final class CascadeDeleteTask extends Object implements OptionalTask<EntityList,List<EntityId>>, CascadeCommons
Persist task that performs cascading delete of an entity. The `map` argument is of type <EntityModel-Name> --> List<PrimaryKey> and specifies all entities that should not be deleted. The businessUnits argument lists all business unit (ids) that are changed into when deleting entities. If this is not specified, then all existing business units are iterated through, such that all related entities, no matter which business unit, are removed.