Enum EdmOnDelete
- All Implemented Interfaces:
Serializable
,Comparable<EdmOnDelete>
,java.lang.constant.Constable
A navigation property MAY define one edm:OnDelete element. It describes the action the service will take on
related entities when the entity on which the navigation property is defined is deleted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCascade, meaning the related entities will be deleted if the source entity is deletedNone, meaning a DELETE request on a source entity with related entities will fail,SetDefault, meaning all properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to their default value.SetNull, meaning all properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to null, -
Method Summary
Modifier and TypeMethodDescriptionstatic EdmOnDelete
Returns the enum constant of this type with the specified name.static EdmOnDelete[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Cascade
Cascade, meaning the related entities will be deleted if the source entity is deleted -
None
None, meaning a DELETE request on a source entity with related entities will fail, -
SetNull
SetNull, meaning all properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to null, -
SetDefault
SetDefault, meaning all properties of related entities that are tied to properties of the source entity via a referential constraint and that do not participate in other referential constraints will be set to their default value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-