Enum Class DeleteRule
- All Implemented Interfaces:
Serializable, Comparable<DeleteRule>, Constable
Defines what happens to the target objects of an ObjRelationship when the source object is deleted. A relationship
with no delete rule takes no action on its target objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DeleteRuleDefault delete rule for one-to-many relationships.static final DeleteRuleDefault delete rule for many-to-one relationships. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteRuleReturns the enum constant of this class with the specified name.static DeleteRule[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULLIFY
Remove the reference that the destination has to this source (if the inverse relationship is toOne, nullify, if toMany, remove the source object) -
CASCADE
Delete the destination object(s) -
DENY
If the relationship has any objects (toOne or toMany), deny the delete. (Destination objects would therefore have to be deleted manually first)
-
-
Field Details
-
DEFAULT_DELETE_RULE_TO_MANY
Default delete rule for one-to-many relationships. It is used when new rels are created via modeler, or when synchrozining Obj- and DbEntities -
DEFAULT_DELETE_RULE_TO_ONE
Default delete rule for many-to-one relationships. It is used when new rels are created via modeler, or when synchrozining Obj- and DbEntities
-
-
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
-