de.mid.innovator.srv2api.icw2db
Interface DBTableColumn

All Superinterfaces:
ADClientAble, ADFindAble, ADHistoryAble, ADM2AttrModifyAble, DBColumn, DBOptionAble, DBSQLObject, ELContainerAble, ELContAsgnAble, ELDeleteAble, ELElement, ELFeature, ELMultiplicityAble, ELMultiplicityAbleTypedElement, ELNamedElement, ELNamespaceAble, ELNamespaceAsgnAble, ELObject, ELProperty, ELRedefAble, ELStructFeature, ELTypedElement, ELUUIDAble, ELValueContainerAble, ELViewNavigAble, IMFeature, IMProperty, IMStructuralFeature, MECommentAble, MEConstraintAble, MEModelElement, MENamedElement, MENamespaceAsgnAble, MEStereotypeAble, MMAttachmentAble, MMCommentContainerAble, MMLabelAble, MMLabelTextAttachmentAble, MMStereotypeAble, MMTextAble

public interface DBTableColumn
extends DBColumn, DBOptionAble


Nested Class Summary
static class DBTableColumn.VAttr
           
 
Method Summary
 List<DBForeignKey> getDBForeignKey(K_CONTROL_OPTION... behaviourFlags)
          List of foreign keys that use this column.
 List<DBIndex> getDBIndex(K_CONTROL_OPTION... behaviourFlags)
          List of indices that use this column.
 List<DBIndex> getDBIndex(MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags)
          The method calls getDBIndex and filters its return values according to the given stereotype value.
 List<DBTableColumn> getDBKeyRelationshipColumn(K_CONTROL_OPTION... behaviourFlags)
          List of foreign key columns, referencing this unique key column.
 List<DBTableColumn> getDBKeyRelationshipColumnRecursive(DBTable refObj, K_CONTROL_OPTION... behaviourFlags)
          List of foreign key columns, referencing this unique key column indirectly.
 IMSemanticDataType getDBTypingSemanticDataType()
          The semantic data type that types this DBTableColumn.
 List<DBUniqueKey> getDBUniqueKey(K_CONTROL_OPTION... behaviourFlags)
          List of unique keys (primary, candidate or unique) that use this column.
<T extends DBColumn>
List<T>
getDBUniqueKeyColumn(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)
          List of unique key columns, referenced by this foreign key column.
<T extends DBColumn>
List<T>
getDBUniqueKeyColumnOrigin(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)
          Gets the origin columns of this foreign key column.
 DBTableColumn getFirstValidTypeColumn()
          Gets the DBTableColumn which is valid to evaluate the IMDataType of this column.
 List<DBMergedInstance> getMergedInstance()
          List of all instances using this DBTableColumn.
 List<DBCheckConstraint> getOwnedDBCheckConstraint(K_CONTROL_OPTION... behaviourFlags)
          List of check constraints owned by this DBTableColumn.
 List<DBOptionTableColumn> getOwnedDBOptionTableColumn(K_CONTROL_OPTION... behaviourFlags)
          All table column options of this DBTableColumn.
 DBTable getOwningTable()
          Reference to the table of the column.
 void setDBIndex(List<? extends DBIndex> values)
          Set the value of View DBIndex.
 void setPrimary(boolean setPrimary)
          Sets the DBTableColumn to primary or not primary.
 
Methods inherited from interface de.mid.innovator.srv2api.icw2db.DBColumn
getOwnedSQLGeneric, getPropagationViews, getPropagationViews, getUsingDBViewElement, getUsingViewColumnByRef, getUsingViewColumnByRef
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAble
getElementImport, getImportedElement, getImportedElement, getImportedPackage, getImportedPackage, getMember, getMember, getMemberByPattern, getMemberByPattern, getOwnedConstraint, getOwnedMember, getOwnedMemberByPath, getOwnedMemberByPattern, getOwnedMemberByPattern, getOwnedMemberTransitiveByPattern, getOwnedMemberTransitiveByPattern, getOwnedMemberTransitiveByPatternIgnoreCase, getOwnedMemberTransitiveByPatternIgnoreCase, getPackageImport
 
Methods inherited from interface de.mid.innovator.srv2api.icw2im.IMProperty
getConcreteFirstMasterParameter, getConcreteSecondMasterParameter, getDefaultSetting, getDerivedDataTypeDefinition, getDerivedSemanticDataType, getDerivedTypingTSOrDTType, getFirstValidDerivingTypeProperty, getFirstValidTypeProperty, getKeyRelationship, getKeyRelationship, getOriginProperty, getOwnedTypeDefinition, getTypeClassName, getTypingDataType, getTypingDataTypeDefinition, getTypingSemanticDataType, getUniqueKey, getUniqueKey, getUniqueKeyProperty, getUniqueKeyProperty, getUniqueKeyPropertyOrigin, getUniqueKeyPropertyOrigin, isLocal, isNotNull, merge, setConcreteFirstMasterParameter, setConcreteSecondMasterParameter, setDefaultSetting, setDerivedSemanticDataType, setDerivedTypingTSOrDTType, setNull, split, typeMapping
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELProperty
getAggregation, getAssociation, getClassifierOfAssociationEnd, getDefaultValue, getOppositeAssociationEnd, getSelfAndSubsettedTransitive, getSelfAndSubsettedTransitive, getSelfAndSubsettingTransitive, getSelfAndSubsettingTransitive, getSubsettedProperty, getSubsettedTransitive, getSubsettedTransitive, getSubsettingProperty, getSubsettingTransitive, getSubsettingTransitive, getTypingCreateCLInst, isAssocOwner, isComposite, isDerived, isDerivedUnion, isNavigable, isNavigableAssocEnd, isSubsetted, isSubsetting, reconnectAssociation, setAggregation, setAssocOwner, setDefaultValue, setDerived, setDerivedUnion, setNavigableAssocEnd, setSubsettedProperty
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELViewNavigAble
getViewNavigAbleGroup
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELStructFeature
getSlot, getStructuralFeatureAction, isReadOnly, setReadOnly
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELMultiplicityAble
getLower, getLowerBoundAsString, getLowerUpperVal, getUpper, getUpperBoundAsString, hasMultiplicity11, hasUpper1, isMany, isMultivalued, isOptional, isOrdered, isUnique, setLower, setMany, setOptional, setOrdered, setUnique, setUpper
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELTypedElement
getModifyTypedElementDeclaration, getType, getTypedElementCnstr, getTypeKind, getValSpecOfTypedElement, getValSpecOfTypedElementWithPattern, getValSpecOfTypedElementWithPattern, isBitmapAble, isColorAble, modifyTypedElementDeclaration, setType
 
Methods inherited from interface de.mid.innovator.srv2api.icw2im.IMFeature
getIndex, getIndex, getIndexedFeature, getKey, getKey, getKeyFeature, getKeyRelationshipProperty, getKeyRelationshipProperty, getKeyRelationshipPropertyRecursive, getKeyRelationshipPropertyRecursive, getOwningClassifier
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistory
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEConstraintAble
getAssignedConstraint, getAssignedConstraint, getConstraintAssign
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELFeature
getEntryInGroupAble, getEntryInGroupAble, getUsingViewElement, isStatic, setStatic
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELRedefAble
getRedefined, getRedefining, isLeaf, isRedefined, isRedefining, setLeaf, setRedefined
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibility
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getResetDefaultName, getSupplierDependency, rename, setName, setNameKind, setResetDefaultName
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEStereotypeAble
getClientMappingDependency, getOutgoingConceptRealization, getProxyAsgProperty, getRealizedConcept, getRealizedConcept, getRepresentingArtifact, getRequirementOfStakeholder, getRequirementOfStakeholderOwner, isMapped, replaceRealizedConcepts, setMapped, setRealizedConcept, setRequirementOfStakeholder
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMCommentContainerAble
getOwnedComment
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMStereotypeAble
assignStereotypeDlg, cloneElement, getAttrCnstrEffective, getCreateTemplate, getDisplayType, getOwnedFormat, getOwnedStereotypePropertyValSpec, getPropBoolValue, getPropLongValue, getPropStringValue, getPropValueList, getStereoPropValueByPattern, getStereoPropValueByPattern, getStereotype, getStereotypeName, getStereotypeProperty, getStereotypePropertyInfo, getStereotypePropertyNameValue, isCloneAbleElement, modifyStereotypePropertyValuesByName, setStereotype, setStereotypePropertyInfo
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELValueContainerAble
getValueReUseAble, setValueReUseAble
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MECommentAble
getAssignedComment, getAssignedComment, getCommentAssign
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MENamespaceAsgnAble
getMENamespace
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getUUID, setUUID
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MENamedElement
getMESupplierDependency, getMESupplierMappingDependency
 
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.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.icw2meta.MMTextAble
getFlowExpandedValue, getModifyFlowDocuments, getModifyTextValues, getModifyTextValuesDlgInit, getOwnedTextValue, getOwnedTextValueByPattern, getTextExpandedValue, getTextStringValue, getURIList, modifyFlowDocuments, modifyTextValuesDlg
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMLabelAble
getLabel, getLabelBoolValue, getLabelColor, getLabelInfo, getLabelLongValue, getLabelNameValue, getLabelStringValue, getLabelValueByPattern, getLabelValueByPattern, getLabelValueList, getOwnedLabelValSpec, hasLabel, modifyLabelValuesByName, setLabelInfo
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMAttachmentAble
getAssignedAttachment, getAttachmentAssign, getDefaultAttachment, getOwnedAttachment, setDefaultAttachment
 
Methods inherited from interface de.mid.innovator.srv2api.icw2db.DBSQLObject
getPrivilege, getReferencedSQLObject, getReferencingSQLObject, setPrivilege, setReferencedSQLObject, setReferencingSQLObject
 
Methods inherited from interface de.mid.innovator.srv2api.icw2db.DBOptionAble
getConfiguredOption, getOwnedDBOption
 

Method Detail

getDBForeignKey

List<DBForeignKey> getDBForeignKey(K_CONTROL_OPTION... behaviourFlags)
                                   throws InoNetException,
                                          SrvErrorException
List of foreign keys that use this column.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException
Sorted:
the result may be sorted according to the key order in the table.

getDBIndex

List<DBIndex> getDBIndex(K_CONTROL_OPTION... behaviourFlags)
                         throws InoNetException,
                                SrvErrorException
List of indices that use this column.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException
Sorted:
The result may be sorted according to the index order in the table.

getDBIndex

List<DBIndex> getDBIndex(MMStereotype stereotype,
                         K_CONTROL_OPTION... behaviourFlags)
                         throws InoNetException,
                                SrvErrorException
The method calls getDBIndex and filters its return values according to the given stereotype value.

Parameters:
stereotype - The stereotype used to filter the result list
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getDBKeyRelationshipColumn

List<DBTableColumn> getDBKeyRelationshipColumn(K_CONTROL_OPTION... behaviourFlags)
                                               throws InoNetException,
                                                      SrvErrorException
List of foreign key columns, referencing this unique key column.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getDBKeyRelationshipColumnRecursive

List<DBTableColumn> getDBKeyRelationshipColumnRecursive(DBTable refObj,
                                                        K_CONTROL_OPTION... behaviourFlags)
                                                        throws InoNetException,
                                                               SrvErrorException
List of foreign key columns, referencing this unique key column indirectly. This means that if a direct foreign key column is part of an unique key referenced by a following foreign key, the column of the following foreign key will be returned in this list.
Note: the direct foreign columns are not part of this list!
The result can be restricted to columns of the given argument refObj.

Parameters:
refObj - A further instance of type DBTable which is used to control the behaviour of the method. (see description above)
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getDBTypingSemanticDataType

IMSemanticDataType getDBTypingSemanticDataType()
                                               throws InoNetException,
                                                      SrvErrorException
The semantic data type that types this DBTableColumn.

Throws:
InoNetException
SrvErrorException

getDBUniqueKey

List<DBUniqueKey> getDBUniqueKey(K_CONTROL_OPTION... behaviourFlags)
                                 throws InoNetException,
                                        SrvErrorException
List of unique keys (primary, candidate or unique) that use this column.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException
Sorted:
the result may be sorted according to the key order in the table.

getDBUniqueKeyColumn

<T extends DBColumn> List<T> getDBUniqueKeyColumn(Class<T> returnType,
                                                  K_CONTROL_OPTION... behaviourFlags)
                                              throws InoNetException,
                                                     SrvErrorException
List of unique key columns, referenced by this foreign key column.

Parameters:
returnType - Specifies the type of elements to be returned.
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getDBUniqueKeyColumnOrigin

<T extends DBColumn> List<T> getDBUniqueKeyColumnOrigin(Class<T> returnType,
                                                        K_CONTROL_OPTION... behaviourFlags)
                                                    throws InoNetException,
                                                           SrvErrorException
Gets the origin columns of this foreign key column. An origin column is a pure unique key column at the beginning of a foreign/primary key chain. If a foreign key column references more than one unique key column the result may contain more than one column.

Parameters:
returnType - Specifies the type of elements to be returned.
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getFirstValidTypeColumn

DBTableColumn getFirstValidTypeColumn()
                                      throws InoNetException,
                                             SrvErrorException
Gets the DBTableColumn which is valid to evaluate the IMDataType of this column. The result column is normally this column itself, unless this column is part of a foreign key. In the second case, the type is normally derived from a unique key column which will be returned.

Throws:
InoNetException
SrvErrorException

getMergedInstance

List<DBMergedInstance> getMergedInstance()
                                         throws InoNetException,
                                                SrvErrorException
List of all instances using this DBTableColumn.

Throws:
InoNetException
SrvErrorException

getOwnedDBCheckConstraint

List<DBCheckConstraint> getOwnedDBCheckConstraint(K_CONTROL_OPTION... behaviourFlags)
                                                  throws InoNetException,
                                                         SrvErrorException
List of check constraints owned by this DBTableColumn.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException
Sorted:
the list is sorted according to appropriate constraint order in the column.

getOwnedDBOptionTableColumn

List<DBOptionTableColumn> getOwnedDBOptionTableColumn(K_CONTROL_OPTION... behaviourFlags)
                                                      throws InoNetException,
                                                             SrvErrorException
All table column options of this DBTableColumn.

Parameters:
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException
Sorted:
the result may be sorted.

getOwningTable

DBTable getOwningTable()
                       throws InoNetException,
                              SrvErrorException
Reference to the table of the column.

Throws:
InoNetException
SrvErrorException

setDBIndex

void setDBIndex(List<? extends DBIndex> values)
                throws InoNetException,
                       SrvErrorException
Set the value of View DBIndex.

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

setPrimary

void setPrimary(boolean setPrimary)
                throws InoNetException,
                       SrvErrorException
Sets the DBTableColumn to primary or not primary.

Parameters:
setPrimary -
Throws:
InoNetException
SrvErrorException