Package de.mid.innovator.srv2api.icw2db
Class DBUniqueKeyHelper
java.lang.Object
de.mid.innovator.srv2api.icw2db.DBUniqueKeyHelper
This is a utility class for DBUniqueKey that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DBUniqueKeycreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) Create a new Key (in Database Schema) with template and container.static DBUniqueKeycreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) Create a new Key (in Database Schema) with stereotype and container.static List<DBUniqueKey> createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) This method creates aDBUniqueKeyfor the givenERUniqueKey(ER element) in the givenDBTable(DB element).
This standard mapping creates aMEMappingDependencywith the ER key as requirement element and with the newly created DB key as implementation element.
-
Method Details
-
createByER
public static List<DBUniqueKey> createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) throws InoNetException, SrvErrorException This method creates aDBUniqueKeyfor the givenERUniqueKey(ER element) in the givenDBTable(DB element).
This standard mapping creates aMEMappingDependencywith the ER key as requirement element and with the newly created DB key as implementation element. The mapping dependency is marked as 'maintaining' for further automatic mapping maintenance.- 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 DBUniqueKey create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Key (in Database Schema) with stereotype and container.- Parameters:
srvCtx- The context of the related innovator server.ohStereotype- Stereotype for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-
create
public static DBUniqueKey create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) throws InoNetException, SrvErrorException Create a new Key (in Database Schema) with template and container.- Parameters:
srvCtx- The context of the related innovator server.ohTemplate- Template for the new elementohContainer- Container for the new element- Throws:
InoNetExceptionSrvErrorException
-