Interface CascadingDeleteService

All Superinterfaces:
PersistTask<Entity,Boolean>
All Known Implementing Classes:
CascadingDeleteServiceImpl

@Deprecated public interface CascadingDeleteService extends PersistTask<Entity,Boolean>
Deprecated.
use DeleteService instead
  • Field Details

    • EXCLUDED_ENTITIES_KEY

      static final Mode.Key<CascadingDeleteService.ExcludedEntities> EXCLUDED_ENTITIES_KEY
      Deprecated.
      Key for specifying a set of excluded entities when used as a persist task.
    • CONTINUE_ON_CASCADE_DELETE_EXCEPTION_KEY

      static final Mode.Key<Boolean> 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

      void cascadingDelete(Entity entity, boolean continueOnException)
      Deprecated.
      Deletes the entity and all related entities with cascade=yes
      Parameters:
      entity - the main entity to delete
      continueOnException - 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 delete
      excludedEntities - the entities to exclude.
      continueOnException - whether to continue when one entity causes a CascadingDeleteException
    • cascadingDelete

      default void cascadingDelete(Entity entity)
      Deprecated.
    • cascadingDelete

      default void cascadingDelete(Entity entity, CascadingDeleteService.ExcludedEntities excludedEntities)
      Deprecated.
    • run

      default Boolean run(Optional<Entity> entity, CommandContext ctx) throws Exception
      Deprecated.
      Specified by:
      run in interface PersistTask<Entity,Boolean>
      Throws:
      Exception