de.mid.innovator.srv2api.icw2db
Interface DBMergedInstance

All Superinterfaces:
ADClientAble, ADM2AttrModifyAble, ELContainerAble, ELContAsgnAble, ELDeleteAble, ELElement, ELObject, MEModelElement

public interface DBMergedInstance
extends MEModelElement, ELContAsgnAble

The merge methods of DBTable are creating a DBMergedTable to keep information which was the assimilated table. If you merge a table to unique key with a count ('n' greater than one), there will be created a DBMergedInstance for each of 'n' with a set of table columns.


Nested Class Summary
static class DBMergedInstance.VAttr
           
 
Method Summary
<T extends MEModelElement>
List<T>
getAllInstanceElements(Class<T> returnType, boolean mode, K_CONTROL_OPTION... behaviourFlags)
          Returns the list of all elements, assigned to this DBMergedInstance.
<T extends MEModelElement>
List<T>
getAllInstanceElements(Class<T> returnType, MMStereotype stereotype, boolean mode, K_CONTROL_OPTION... behaviourFlags)
          The method calls getAllInstanceElements and filters its return values according to the given stereotype value.
 List<DBForeignKey> getForeignKey()
          List of all foreign keys assigned to this DBMergedInstance.
 DBMergedTable getOwningMergedTable()
          Reference to the DBMergedTable of this DBMergedInstance.
 List<DBTableColumn> getTableColumn()
          List of all columns assigned to this DBMergedInstance.
 List<DBUniqueKey> getUniqueKey()
          List of all unique keys assigned to this DBMergedInstance.
 void setForeignKey(List<? extends DBForeignKey> values)
          Set the value of Foreign Key ForeignKey.
 void setTableColumn(List<? extends DBTableColumn> values)
          Set the value of Foreign Key TableColumn.
 void setUniqueKey(List<? extends DBUniqueKey> values)
          Set the value of Foreign Key UniqueKey.
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColor
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getCheckSetNotToLocalizeAttribute, getClientDependency, getNotToLocalizeAttribute, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedLocalizedValue, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, resetNotToLocalizeAttribute, setNotToLocalizeAttribute, sortContents
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getLogic, getLogic, getPresentationContext, getSection
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
 

Method Detail

getAllInstanceElements

<T extends MEModelElement> List<T> getAllInstanceElements(Class<T> returnType,
                                                          boolean mode,
                                                          K_CONTROL_OPTION... behaviourFlags)
                                                      throws InoNetException,
                                                             SrvErrorException
Returns the list of all elements, assigned to this DBMergedInstance. These elements are columns, unique keys or foreign keys.
If the boolean type value in boolean argument mode is true, the result list will be restricted to those elements, which have no other instance assignments. The restricted list contains all elements, which will be deleted, if you delete the instance.

Parameters:
returnType - Specifies the type of elements to be returned.
mode - A value of type TBoolean that controls the behaviour of the underlying method. (see description)
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getAllInstanceElements

<T extends MEModelElement> List<T> getAllInstanceElements(Class<T> returnType,
                                                          MMStereotype stereotype,
                                                          boolean mode,
                                                          K_CONTROL_OPTION... behaviourFlags)
                                                      throws InoNetException,
                                                             SrvErrorException
The method calls getAllInstanceElements and filters its return values according to the given stereotype value.

Parameters:
returnType - Specifies the type of elements to be returned.
stereotype - The stereotype used to filter the result list
mode - A value of type TBoolean that controls the behaviour of the underlying method. (see description)
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getForeignKey

List<DBForeignKey> getForeignKey()
                                 throws InoNetException,
                                        SrvErrorException
List of all foreign keys assigned to this DBMergedInstance.

Throws:
InoNetException
SrvErrorException

getOwningMergedTable

DBMergedTable getOwningMergedTable()
                                   throws InoNetException,
                                          SrvErrorException
Reference to the DBMergedTable of this DBMergedInstance.

Throws:
InoNetException
SrvErrorException

getTableColumn

List<DBTableColumn> getTableColumn()
                                   throws InoNetException,
                                          SrvErrorException
List of all columns assigned to this DBMergedInstance.

Throws:
InoNetException
SrvErrorException

getUniqueKey

List<DBUniqueKey> getUniqueKey()
                               throws InoNetException,
                                      SrvErrorException
List of all unique keys assigned to this DBMergedInstance.

Throws:
InoNetException
SrvErrorException

setForeignKey

void setForeignKey(List<? extends DBForeignKey> values)
                   throws InoNetException,
                          SrvErrorException
Set the value of Foreign Key ForeignKey.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException

setTableColumn

void setTableColumn(List<? extends DBTableColumn> values)
                    throws InoNetException,
                           SrvErrorException
Set the value of Foreign Key TableColumn.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException

setUniqueKey

void setUniqueKey(List<? extends DBUniqueKey> values)
                  throws InoNetException,
                         SrvErrorException
Set the value of Foreign Key UniqueKey.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException