Package com.syzygy.events.database
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>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
If the instance is being deleted because another instance was deletedstatic final int
If the instance is being deleted becausestatic final int
If the database record was deleted by another instancestatic final int
If the instance is being deleted explicitlystatic final int
If the instance is being deleted because it is being replaced by another version of the instance.static final int
If sub instance should not be deleted.static final int
If the instance is being deleted because a non nullable sub instance was deleted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DatabaseInstance.DeletionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Field Details
-
REPLACEMENT
public static final int REPLACEMENTIf 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_DELETEIf the instance is being deleted explicitly- See Also:
-
CASCADE
public static final int CASCADEIf the instance is being deleted because another instance was deleted- See Also:
-
UP_FALL
public static final int UP_FALLIf the instance is being deleted because a non nullable sub instance was deleted- See Also:
-
ERROR
public static final int ERRORIf the instance is being deleted because- See Also:
-
SILENT
public static final int SILENTIf sub instance should not be deleted. Does not notify updates- See Also:
-
FROM_DATABASE
public static final int FROM_DATABASEIf the database record was deleted by another instance- See Also:
-
-
Constructor Details
-
DeletionType
private DeletionType()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-