Interface CascadingDeleteService
- All Superinterfaces:
PersistTask<Entity,
Boolean>
- All Known Implementing Classes:
CascadingDeleteServiceImpl
Deprecated.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionDeprecated.Key that, if set, tells the task to to log the CascadeDeleteExceptions and keep going when one is encounteredstatic final Mode.Key
<CascadingDeleteService.ExcludedEntities> Deprecated.Key for specifying a set of excluded entities when used as a persist task. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
cascadingDelete
(Entity entity) Deprecated.void
cascadingDelete
(Entity entity, boolean continueOnException) Deprecated.Deletes the entity and all related entities with cascade=yesdefault void
cascadingDelete
(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities) Deprecated.void
cascadingDelete
(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities, boolean continueOnException) Deprecated.Deletes the entity and all related entities with cascade=yes except of the excluded entities.default Boolean
run
(Optional<Entity> entity, CommandContext ctx) Deprecated.Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Field Details
-
EXCLUDED_ENTITIES_KEY
Deprecated.Key for specifying a set of excluded entities when used as a persist task. -
CONTINUE_ON_CASCADE_DELETE_EXCEPTION_KEY
Deprecated.Key that, if set, tells the task to to log the CascadeDeleteExceptions and keep going when one is encountered
-
-
Method Details
-
cascadingDelete
Deprecated.Deletes the entity and all related entities with cascade=yes- Parameters:
entity
- the main entity to deletecontinueOnException
- whether to continue when one entity causes a CascadingDeleteException
-
cascadingDelete
void cascadingDelete(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities, boolean continueOnException) Deprecated.Deletes the entity and all related entities with cascade=yes except of the excluded entities.- Parameters:
entity
- the main entity to deleteexcludedEntities
- the entities to exclude.continueOnException
- whether to continue when one entity causes a CascadingDeleteException
-
cascadingDelete
Deprecated. -
cascadingDelete
default void cascadingDelete(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities) Deprecated. -
run
Deprecated.- Specified by:
run
in interfacePersistTask<Entity,
Boolean> - Throws:
Exception
-
DeleteService
instead