Package de.mid.innovator.srv2api.icw2db
Class DBTableHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2db.DBTableHelper
-
public abstract class DBTableHelper extends java.lang.Object- See Also:
DBTable
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBTablecreate(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer)Create a new Database Table with template and container.static DBTablecreate(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer)Create a new Database Table with stereotype and container.static DBTablecreateByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement)static DBTablesplitV(SrvContext srvCtx, java.util.List<? extends ELElement> seq)Splits the selectedDBTableColumns into a newDBTable.
-
-
-
Method Detail
-
createByER
public static DBTable createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) throws InoNetException, SrvErrorException
This method creates aDBTablefor the givenEREntity(ER element) in the givenMEModel(DB element). The corresponding member elements will also be created:
*ERAttributetoDBTableColumn*ERUniqueKeytoDBUniqueKey*ERForeignKey) toDBForeignKey)
This standard mapping creates aMEMappingDependencywith the entity as requirement element and the newly created table as implementation element.
If necessary, aIMSemanticDataTypeused by the entity will be mapped into a corresponding semantic data type used by the database table.- 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 DBTable create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer) throws InoNetException, SrvErrorException
Create a new Database Table 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 DBTable create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer) throws InoNetException, SrvErrorException
Create a new Database Table 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
-
splitV
public static DBTable splitV(SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Splits the selectedDBTableColumns into a newDBTable.- Parameters:
srvCtx- The context of the related innovator server.seq- List of ELElement- Throws:
InoNetExceptionSrvErrorException
-
-