Class OmlDelete.CascadeRule

java.lang.Object
io.opencaesar.oml.util.OmlDelete.CascadeRule
Enclosing class:
OmlDelete

public static class OmlDelete.CascadeRule extends Object
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 Details

    • direction

      public OmlDelete.CascadeDirection direction
      The direction of the rule
    • sourceType

      public Entity sourceType
      The source type (can be null)
    • relation

      public Relation relation
      The relation of the rule
    • targetType

      public Entity targetType
      The target type (can be null)
    • description

      public String 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 direction
      sourceType - The source type
      relation - The relation
      targetType - The target type
      description - The description