Interface CascadingDeleteService
- All Superinterfaces:
PersistTask<Entity,Boolean>
- All Known Implementing Classes:
CascadingDeleteServiceImpl
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated. -
Field Summary
FieldsModifier 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 voidcascadingDelete(Entity entity) Deprecated.voidcascadingDelete(Entity entity, boolean continueOnException) Deprecated.Deletes the entity and all related entities with cascade=yesdefault voidcascadingDelete(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities) Deprecated.voidcascadingDelete(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities, boolean continueOnException) Deprecated.Deletes the entity and all related entities with cascade=yes except of the excluded entities.default Booleanrun(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:
runin interfacePersistTask<Entity,Boolean> - Throws:
Exception
-
DeleteServiceinstead