Package de.mid.innovator.srv2api.icw2im
Class IMKeyRelationshipFeatureHelper
java.lang.Object
de.mid.innovator.srv2api.icw2im.IMKeyRelationshipFeatureHelper
This is a utility class for IMKeyRelationshipFeature that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMKeyRelationshipFeaturecreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, List<? extends ELElement> seqSel) Create a new Key Relationship Feature with template and a sequence of elements.
Sequence of elements:
Element 0:IMKeyRelationship(ERForeignKeyorDBForeignKey) as owner Element 1:IMStructuralFeature(ERAttributeorDBTableColumn) Element 2:IMUniqueKeyFeaturereferenced by the newIMKeyRelationshipFeaturestatic IMKeyRelationshipFeaturecreate(SrvContext srvCtx, MMStereotype ohStereotype, List<? extends ELElement> seqSel) Create a new Key Relationship Feature with stereotype and a sequence of elements.
Sequence of elements:
Element 0:IMKeyRelationship(ERForeignKeyorDBForeignKey) as owner Element 1:IMStructuralFeature(ERAttributeorDBTableColumn) Element 2:IMUniqueKeyFeaturereferenced by the newIMKeyRelationshipFeaturestatic List<IMKeyRelationshipFeature> createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) This method creates an analogIMKeyRelationshipFeaturefor the given ER element in the givenDBForeignKey(DB element).
-
Method Details
-
createByER
public static List<IMKeyRelationshipFeature> createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) throws InoNetException, SrvErrorException This method creates an analogIMKeyRelationshipFeaturefor the given ER element in the givenDBForeignKey(DB element).- Parameters:
srvCtx- The context of the related innovator server.ohDBElement- Target DB Element for evaluating the owner for the new elementohERElement- Requirement element of the ER Model- Throws:
InoNetExceptionSrvErrorException
-
create
public static IMKeyRelationshipFeature create(SrvContext srvCtx, MMStereotype ohStereotype, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Key Relationship Feature with stereotype and a sequence of elements.
Sequence of elements:
Element 0:IMKeyRelationship(ERForeignKeyorDBForeignKey) as owner Element 1:IMStructuralFeature(ERAttributeorDBTableColumn) Element 2:IMUniqueKeyFeaturereferenced by the newIMKeyRelationshipFeature- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-
create
public static IMKeyRelationshipFeature create(SrvContext srvCtx, MMCreateTemplate ohTemplate, List<? extends ELElement> seqSel) throws InoNetException, SrvErrorException Create a new Key Relationship Feature with template and a sequence of elements.
Sequence of elements:
Element 0:IMKeyRelationship(ERForeignKeyorDBForeignKey) as owner Element 1:IMStructuralFeature(ERAttributeorDBTableColumn) Element 2:IMUniqueKeyFeaturereferenced by the newIMKeyRelationshipFeature- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementseqSel- Sequence of selected elements- Throws:
InoNetExceptionSrvErrorException
-