Package io.opencaesar.oml.util
Class OmlDelete.CascadeRule
java.lang.Object
io.opencaesar.oml.util.OmlDelete.CascadeRule
- Enclosing class:
- OmlDelete
A cascade delete rule
a) If direction is
SOURCE_TO_TARGET
, and
the instance to be deleted matches the given source type,
the instance to be deleted is related to a target instance with the given relation,
the target instance matches the given target type,
delete the target instance;
a) If direction is TARGET_TO_SOURCE
, and
the instance to be deleted matches the given target type,
the instance to be deleted is related to a source instance with the given relation,
the source instance matches the given source type,
delete the source instance;-
Field Summary
Modifier and TypeFieldDescriptionThe description of the rule for UIThe direction of the ruleThe relation of the ruleThe source type (can be null)The target type (can be null) -
Constructor Summary
ConstructorDescriptionCascadeRule
(OmlDelete.CascadeDirection direction, Entity sourceType, Relation relation, Entity targetType, String description) Creates a new cascade rule -
Method Summary
-
Field Details
-
direction
The direction of the rule -
sourceType
The source type (can be null) -
relation
The relation of the rule -
targetType
The target type (can be null) -
description
The description of the rule for UI
-
-
Constructor Details
-
CascadeRule
public CascadeRule(OmlDelete.CascadeDirection direction, Entity sourceType, Relation relation, Entity targetType, String description) Creates a new cascade rule- Parameters:
direction
- The directionsourceType
- The source typerelation
- The relationtargetType
- The target typedescription
- The description
-