Package de.mid.innovator.srv2api.icw2er
Class ERGeneralizationHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2er.ERGeneralizationHelper
-
public abstract class ERGeneralizationHelper extends java.lang.Object
AERGeneralization
is a special relationship between two entities. In the Entity Relationship Model a generalization must be assigned to aERGeneralizationSet
. 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 aERForeignKey
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:
ERGeneralization
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ERGeneralization
create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget)
Create a new Generalization (of Entities) with template from source to target element.static ERGeneralization
create(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 ERGeneralization
create(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 ERGeneralization
create(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 ERGeneralization
createAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget)
Create a new Generalization (of Entities) with template from source to target element.static ERGeneralization
createAndMaintain(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 ERGeneralization
createAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget)
Create a new Generalization (of Entities) with stereotype from source to target element.static ERGeneralization
createAndMaintain(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 Detail
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
-