Overview Index

SDAI_MAPPING_SCHEMA (jsdai.mapping)


ENTITY entity_constraint
          SUPERTYPE OF (exact_entity_constraint)
          SUBTYPE OF (constraint_attribute);
          domain : entity_definition;
          attribute : attribute_select;
UNIQUE
          ur1 : attribute, domain;
END_ENTITY; -- entity_constraint

An entity_constraint specifies a constraint on entity type. The attribute must point to an attribute or constraint definition that is of an entity type. This constraint restricts to subtypes or select types (maybe to complex types).           domain: A domain defines an entity type. The value of constraint attribute (it also may be element of aggregate) must by of this type.
          attribute: An attribute is a definition of attribute that is constraint to some entity type.

Entity data types and their attributes

constraint
          -
constraint_attribute
          -
entity_constraint
          domain: entity_definition;
          attribute: attribute_select;

Known subtypes

          exact_entity_constraint (SDAI_MAPPING_SCHEMA)

Users

constraint
constraint_attribute
          constraint_relationship.element2
                    constraint_select
          end_of_path_constraint.constraints
                    constraint_select
          entity_mapping.constraints
                    constraint_select
          entity_mapping_relationship.constraints
                    constraint_select
          generic_attribute_mapping.constraints
                    constraint_select
          instance_constraint.element1
                    constraint_select
          intersection_constraint.subpaths
                    constraint_select
          negation_constraint.constraints
                    constraint_select
          type_constraint.constraints
                    constraint_select
entity_constraint
          aggregate_member_constraint.attribute
                    aggregate_member_constraint_select
          aggregate_size_constraint.attribute
                    aggregate_member_constraint_select
          attribute_mapping.path
                    attribute_mapping_path_select
          entity_mapping_relationship.path
                    attribute_mapping_path_select
          inverse_attribute_constraint.inverted_attribute
                    inverse_attribute_constraint_select
          path_constraint.element1
                    path_constraint_select

Global rules for this entity data type

          -

public interface EEntity_constraint extends EConstraint_attribute

domain (explicit attribute)

          boolean testDomain(EEntity_constraint type)
          EEntity_definition getDomain(EEntity_constraint type)
          void setDomain(EEntity_constraint type, EEntity_definition value)
          void unsetDomain(EEntity_constraint type)

attribute (explicit attribute)

          int testAttribute(EEntity_constraint type)
          case 1
              EEntity getAttribute(EEntity_constraint type)
              void setAttribute(EEntity_constraint type, EEntity value, EEntity node1)
          void unsetAttribute(EEntity_constraint type)

public class CEntity_constraint implements EEntity_constraint

          static EAttribute attributeDomain(EEntity_constraint type)
          static int usedinDomain(EEntity_constraint type, EEntity_definition instance, ASdaiModel domain, AEntity_constraint result)
          static EAttribute attributeAttribute(EEntity_constraint type)
          static int usedinAttribute(EEntity_constraint type, EEntity instance, ASdaiModel domain, AEntity_constraint result)

public class AEntity_constraint extends AEntity

          public EEntity_constraint getByIndex(int index)
          public EEntity_constraint getCurrentMember(SdaiIterator it)