Package de.mid.innovator.srv2api.icw2er
Class ERRelationshipHelper
java.lang.Object
de.mid.innovator.srv2api.icw2er.ERRelationshipHelper
A
ERRelationship connects two entities via ERRole roles.
The meaning of an relationships strongly depends on the cardinality of it roles.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ERRelationshipcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) Create a new Entity Relationship with template from source to target element.static ERRelationshipcreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, List<? extends ELElement> seqSel) Create a new Entity Relationship with template, container and a sequence of elements.static ERRelationshipcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) Create a new Entity Relationship with stereotype from source to target element.static ERRelationshipcreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, List<? extends ELElement> seqSel) Create a new Entity Relationship with stereotype, container and a sequence of elements.static ERRelationshipcreateAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) Create a new Entity Relationship with template from source to target element.static ERRelationshipcreateAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, List<? extends ELElement> seqSel) Create a new Entity Relationship with template, container and a sequence of elements.static ERRelationshipcreateAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) Create a new Entity Relationship with stereotype from source to target element.static ERRelationshipcreateAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, List<? extends ELElement> seqSel) Create a new Entity Relationship with stereotype, container and a sequence of elements.
-
Method Details
-
create
public static ERRelationship create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Entity Relationship with stereotype, container and a sequence of elements.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERRelationship create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Entity Relationship with stereotype from source to target element.- 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 ERRelationship create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Entity Relationship with template, container and a sequence of elements.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-
create
public static ERRelationship create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Entity Relationship 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
-
createAndMaintain
public static ERRelationship createAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Entity Relationship with stereotype, container and a sequence of elements. The created element is maintained.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERRelationship createAndMaintain(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Entity Relationship with stereotype from source to target element. 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 element- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERRelationship createAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Entity Relationship with template, container and a sequence of elements. The created element is maintained.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-
createAndMaintain
public static ERRelationship createAndMaintain(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohSource, ELElement ohTarget) throws InoNetException, SrvErrorException Create a new Entity Relationship with template from source to target element. 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 element- Throws:
InoNetExceptionSrvErrorException
-