Interface DeletionSet

All Known Implementing Classes:
PreprocessedDeletionSet

public interface DeletionSet
Returned by CascadingDelete.createDeletionSet(ch.tocco.nice2.persist.core.api.entity.Entity). If you for example want to diplay all entities which are going to be deleted calling the you can use the traverse(DeletionSetTraverser) method passing your own DeletionSetTraverser.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Delete the whole set in one transaction (all or nothing).
    void
    Traverse the deletion-set event-based.
  • Method Details

    • traverse

      void traverse(DeletionSetTraverser traverser)
      Traverse the deletion-set event-based.
      Parameters:
      traverser - your own DeletionSetTraverser implementation
    • delete

      void delete(DeletionSetTraverser traverser)
      Delete the whole set in one transaction (all or nothing). The traverser is thought to modify it before deleting (exclude some).
      Parameters:
      traverser - the traverser