Package de.mid.innovator.srv2api.icw2er
Class ERGeneralizationHelper
java.lang.Object
de.mid.innovator.srv2api.icw2er.ERGeneralizationHelper
A
Maintaining a generalization creates a
ERGeneralization is a special relationship between two entities.
In the Entity Relationship Model a generalization must be assigned to a ERGeneralizationSet.
The special entity is source and onwer of the generalization. The general entity is the target of
the generalization and owner of the generalization set.Maintaining a generalization creates a
ERForeignKey and the foreign attributes.
The generalization is an hierarchical relationship, so the foreign attributes initially will be part of the primary key. So the subsequent child entities of the special entity will also get foreign key attributes.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ERGeneralizationcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) Create a new Generalization (of Entities) with template from source to target element.static ERGeneralizationcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) Create a new Generalization (of Entities) with template from source to target element with requirement.static ERGeneralizationcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) Create a new Generalization (of Entities) with stereotype from source to target element.
If the target element is an entity, a new generalization set will be created.static ERGeneralizationcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) Create a new Generalization (of Entities) with stereotype from source to target element with requirement.
If the target element is an entity, a new generalization set will be created.static ERGeneralizationcreateAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) Create a new Generalization (of Entities) with template from source to target element.static ERGeneralizationcreateAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) Create a new Generalization (of Entities) with template from source to target element with requirement.static ERGeneralizationcreateAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) Create a new Generalization (of Entities) with stereotype from source to target element.static ERGeneralizationcreateAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) Create a new Generalization (of Entities) with stereotype from source to target element with requirement.
-
Method Details
-
create
public static ERGeneralization create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with stereotype from source to target element.
If the target element is an entity, a new generalization set will be created. Otherwise the target element can be a generalization set.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohSource- Source for the new elementohTarget- Target for the new element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERGeneralization create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with stereotype from source to target element with requirement.
If the target element is an entity, a new generalization set will be created. Otherwise the target element can be a generalization set.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohSource- Source for the new elementohTarget- Target for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERGeneralization create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with template from source to target element.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohSource- Source for the new elementohTarget- Target for the new element- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERGeneralization create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with template from source to target element with requirement.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohSource- Source for the new elementohTarget- Target for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERGeneralization createAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with stereotype from source to target element. The created element is maintained.
If the target element is an entity, a new generalization set will be created. Otherwise the target element can be a generalization set.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohSource- Source for the new elementohTarget- Target for the new element- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERGeneralization createAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with stereotype from source to target element with requirement. The created element is maintained.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohSource- Source for the new elementohTarget- Target for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERGeneralization createAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with template from source to target element. The created element is maintained.
If the target element is an entity, a new generalization set will be created. Otherwise the target element can be a generalization set.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohSource- Source for the new elementohTarget- Target for the new element- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERGeneralization createAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget, ELElement ohRequirement) throws InoNetException, SrvErrorException Create a new Generalization (of Entities) with template from source to target element with requirement. The created element is maintained.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohSource- Source for the new elementohTarget- Target for the new elementohRequirement- Additional required element- Throws:
InoNetExceptionSrvErrorException
-