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 DBTable
create(SrvContext srvCtx, MMCreateTemplate ohTemplate, ELContainerAble ohContainer)
Create a new Database Table with template and container.static DBTable
create(SrvContext srvCtx, MMStereotype ohStereotype, ELContainerAble ohContainer)
Create a new Database Table with stereotype and container.static DBTable
createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement)
static DBTable
splitV(SrvContext srvCtx, java.util.List<? extends ELElement> seq)
Splits the selectedDBTableColumn
s into a newDBTable
.
-
-
-
Method Detail
-
createByER
public static DBTable createByER(SrvContext srvCtx, ELContainerAble ohDBElement, MENamedElement ohERElement) throws InoNetException, SrvErrorException
This method creates aDBTable
for the givenEREntity
(ER element) in the givenMEModel
(DB element). The corresponding member elements will also be created:
*ERAttribute
toDBTableColumn
*ERUniqueKey
toDBUniqueKey
*ERForeignKey
) toDBForeignKey
)
This standard mapping creates aMEMappingDependency
with the entity as requirement element and the newly created table as implementation element.
If necessary, aIMSemanticDataType
used 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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
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:
InoNetException
SrvErrorException
-
splitV
public static DBTable splitV(SrvContext srvCtx, java.util.List<? extends ELElement> seq) throws InoNetException, SrvErrorException
Splits the selectedDBTableColumn
s into a newDBTable
.- Parameters:
srvCtx
- The context of the related innovator server.seq
- List of ELElement- Throws:
InoNetException
SrvErrorException
-
-