Enum PropagationConstraint.DeleteConstraint
- java.lang.Object
-
- java.lang.Enum<PropagationConstraint.DeleteConstraint>
-
- org.gcube.informationsystem.model.reference.properties.PropagationConstraint.DeleteConstraint
-
- All Implemented Interfaces:
Serializable,Comparable<PropagationConstraint.DeleteConstraint>
- Enclosing interface:
- PropagationConstraint
public static enum PropagationConstraint.DeleteConstraint extends Enum<PropagationConstraint.DeleteConstraint>
Defines the behavior for a 'delete' operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description cascadeWhen the source entity is deleted, the relation and its target entity are also deleted.cascadeWhenOrphanWhen the source entity is deleted, the target entity is also deleted, but only if it has no other incoming relations.keepWhen the source entity is deleted, the relation is deleted, but the target entity is preserved.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropagationConstraint.DeleteConstraintvalueOf(String name)Returns the enum constant of this type with the specified name.static PropagationConstraint.DeleteConstraint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
cascadeWhenOrphan
public static final PropagationConstraint.DeleteConstraint cascadeWhenOrphan
When the source entity is deleted, the target entity is also deleted, but only if it has no other incoming relations.
-
cascade
public static final PropagationConstraint.DeleteConstraint cascade
When the source entity is deleted, the relation and its target entity are also deleted.
-
keep
public static final PropagationConstraint.DeleteConstraint keep
When the source entity is deleted, the relation is deleted, but the target entity is preserved.
-
-
Method Detail
-
values
public static PropagationConstraint.DeleteConstraint[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropagationConstraint.DeleteConstraint c : PropagationConstraint.DeleteConstraint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropagationConstraint.DeleteConstraint valueOf(String name)
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
-
-