Class DeletionTree.DeleteContext

java.lang.Object
ch.tocco.nice2.persist.entity.impl.cascadingdelete.DeletionTree.DeleteContext
Enclosing class:
DeletionTree

public class DeletionTree.DeleteContext extends Object
  • Method Details

    • isDeletable

      public boolean isDeletable()
      Returns:
      false, if this entity is not deletable, because it's referenced.
      See Also:
    • getVisualisation

      public DeleteBehavior.Visualisation getVisualisation()
    • isDelayed

      public boolean isDelayed()
      Returns:
      true if this entity should be deleted after the parent
    • getCause

      public List<Entity> getCause()
      Returns:
      an unmodifiable list of the entities which reference this entity and therefore cause it to be undeletable.
    • addCause

      public void addCause(Entity cause)