Package de.mid.innovator.srv2api.icw2db
Class DBUniqueKeyHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2db.DBUniqueKeyHelper
-
public abstract class DBUniqueKeyHelper extends java.lang.Object
This is a utility class for DBUniqueKey that provides static methods for creation or other purposes.- See Also:
DBUniqueKey
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBUniqueKey
create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer)
Create a new Key (in Database Schema) with template and container.static DBUniqueKey
create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer)
Create a new Key (in Database Schema) with stereotype and container.static java.util.List<DBUniqueKey>
createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement)
This method creates aDBUniqueKey
for the givenERUniqueKey
(ER element) in the givenDBTable
(DB element).
This standard mapping creates aMEMappingDependency
with the ER key as requirement element and with the newly created DB key as implementation element.
-
-
-
Method Detail
-
createByER
public static java.util.List<DBUniqueKey> createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) throws InoNetException, SrvErrorException
This method creates aDBUniqueKey
for the givenERUniqueKey
(ER element) in the givenDBTable
(DB element).
This standard mapping creates aMEMappingDependency
with 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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
-