Enum Class DatabaseInstance.DeletionType

java.lang.Object
java.lang.Enum<DatabaseInstance.DeletionType>
com.syzygy.events.database.DatabaseInstance.DeletionType
All Implemented Interfaces:
Serializable, Comparable<DatabaseInstance.DeletionType>, Constable
Enclosing class:
DatabaseInstance<T extends DatabaseInstance<T>>

public static enum DatabaseInstance.DeletionType extends Enum<DatabaseInstance.DeletionType>
See Also:
  • Field Details

    • REPLACEMENT

      public static final int REPLACEMENT
      If the instance is being deleted because it is being replaced by another version of the instance.
      See Also:
    • HARD_DELETE

      public static final int HARD_DELETE
      If the instance is being deleted explicitly
      See Also:
    • CASCADE

      public static final int CASCADE
      If the instance is being deleted because another instance was deleted
      See Also:
    • UP_FALL

      public static final int UP_FALL
      If the instance is being deleted because a non nullable sub instance was deleted
      See Also:
    • ERROR

      public static final int ERROR
      If the instance is being deleted because
      See Also:
    • SILENT

      public static final int SILENT
      If sub instance should not be deleted. Does not notify updates
      See Also:
    • FROM_DATABASE

      public static final int FROM_DATABASE
      If the database record was deleted by another instance
      See Also:
  • Constructor Details

    • DeletionType

      private DeletionType()
  • Method Details

    • values

      public static DatabaseInstance.DeletionType[] 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 DatabaseInstance.DeletionType 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