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 TypeMethodDescriptionvoiddelete(DeletionSetTraverser traverser) Delete the whole set in one transaction (all or nothing).voidtraverse(DeletionSetTraverser traverser) Traverse the deletion-set event-based.
-
Method Details
-
traverse
Traverse the deletion-set event-based.- Parameters:
traverser- your ownDeletionSetTraverserimplementation
-
delete
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
-