Enum Class DeleteBehavior.Cascade

java.lang.Object
java.lang.Enum<DeleteBehavior.Cascade>
ch.tocco.nice2.model.entity.api.DeleteBehavior.Cascade
All Implemented Interfaces:
Serializable, Comparable<DeleteBehavior.Cascade>, Constable
Enclosing interface:
DeleteBehavior

public static enum DeleteBehavior.Cascade extends Enum<DeleteBehavior.Cascade>
  • Enum Constant Details

    • NO

      public static final DeleteBehavior.Cascade NO
      Deleting the entity doesn't cascade over this relations
    • IF_LAST

      public static final DeleteBehavior.Cascade IF_LAST
      Deleting the entity cascades, if no other relation refers to the relation-targets-entities
    • YES

      public static final DeleteBehavior.Cascade YES
      Deleting the entity cascades over this relation
    • DENY

      public static final DeleteBehavior.Cascade DENY
      Do not allow to delete anything as long as there are related entities.
  • Method Details

    • values

      public static DeleteBehavior.Cascade[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DeleteBehavior.Cascade valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null