Interface DBTable
- All Superinterfaces:
ADAccessAble, ADClientAble, ADFindAble, ADHistoryAble, ADLockAble, ADM2AttrModifyAble, ADOptionAble, ADReferenceAble, ADVersionAble, DBColumnSet, DBSQLObject, ELClassifier, ELContainerAble, ELContAsgnAble, ELDeleteAble, ELElement, ELNamedElement, ELNamespaceAble, ELNamespaceAsgnAble, ELObject, ELPackageAble, ELRedefAble, ELType, ELUUIDAble, ELValueContainerAble, IMClassifier, MECommentAble, MEConstraintAble, MEModelElement, MENamedElement, MENamespaceAsgnAble, MEPackageAble, MEStereotypeAble, METermAble, MMAttachmentAble, MMCommentContainerAble, MMLabelAble, MMLabelTextAttachmentAble, MMStereotypeAble, MMTextAble
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGets the not null foreign keys of this thisDBTable.getElementExistentialDependencyIn(MMStereotype stereotype) The method calls getElementExistentialDependencyIn and filters its return values according to the given stereotype value.getElementExistentialDependencyOut(MMStereotype stereotype) The method calls getElementExistentialDependencyOut and filters its return values according to the given stereotype value.<T extends MEModelElement>
List<T> getFirstLevelElements(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) The elements of the first level are all columns, unique keys and foreign keys that are not yet assigned to anDBMergedInstance.<T extends MEModelElement>
List<T> getFirstLevelElements(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getFirstLevelElements and filters its return values according to the given stereotype value.Returns the leadingEREntityof this table.getMandatoryReferencedTable(MMStereotype stereotype) The method calls getMandatoryReferencedTable and filters its return values according to the given stereotype value.getMandatoryReferencingTable(MMStereotype stereotype) The method calls getMandatoryReferencingTable and filters its return values according to the given stereotype value.Gets theDBForeignKeywhich is maximum one.getOptionalReferencedTable(MMStereotype stereotype) The method calls getOptionalReferencedTable and filters its return values according to the given stereotype value.getOptionalReferencingTable(MMStereotype stereotype) The method calls getOptionalReferencingTable and filters its return values according to the given stereotype value.getOwnedColumn(K_CONTROL_OPTION... behaviourFlags) getOwnedDBCheckConstraint(K_CONTROL_OPTION... behaviourFlags) List of check constraints owned by thisDBTable.getOwnedDBSiblingConstraint(K_CONTROL_OPTION... behaviourFlags) List of constraints (disjoint tables) owned by this database table.getOwnedDBTrigger(K_CONTROL_OPTION... behaviourFlags) getOwnedForeignKey(K_CONTROL_OPTION... behaviourFlags) List of foreign keys of thisDBTable.getOwnedIndex(K_CONTROL_OPTION... behaviourFlags) getOwnedMergedTable(K_CONTROL_OPTION... behaviourFlags) List of merged tables of this table.getOwnedUniqueKey(K_CONTROL_OPTION... behaviourFlags) getReferencedTable(MMStereotype stereotype) The method calls getReferencedTable and filters its return values according to the given stereotype value.getReferencingTable(MMStereotype stereotype) The method calls getReferencingTable and filters its return values according to the given stereotype value.booleanbooleanbooleanisWeak()True, if thisDBTableis weak.
A DB table is called weak, if it owns at least one identifying foreign key!maintain()This maintaining method creates the primary key if it doesn't already exist.
Returns the newly-created primary key or null.voidsetMergedTable(boolean value) Set the value of Info HasMergedTable.voidsetWeak(boolean value) Set the value of Info IsWeak.splitH()Methods inherited from interface ADAccessAble
getAccessRole, getReadRole, hasAccess, setAccessRole, setReadRoleMethods inherited from interface ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistoryMethods inherited from interface ADLockAble
getLock, getLockableCache, getLockLogin, getLockName, hasClutch, hasLock, hasNoLock, hasOthLock, hasOwnLock, isLockable, lock, unlockMethods inherited from interface ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface ADOptionAble
getOwnedOption, modifyOptionDlgMethods inherited from interface ADReferenceAble
getReferenceContainer, setReferenceContainerMethods inherited from interface ADVersionAble
getVersionFile, getVersionList, getVersionListWithoutOpenInfoMethods inherited from interface DBColumnSet
getOwnedSQLGeneric, getViewFromMethods inherited from interface DBSQLObject
getPrivilege, getReferencedSQLObject, getReferencingSQLObject, setPrivilege, setReferencedSQLObject, setReferencingSQLObjectMethods inherited from interface ELClassifier
getAssociation, getAssociation, getAssociationEndFirstTypedBySelf, getAssociationEndFirstTypedBySelf, getAssociationEndNavigableTypedBySelf, getAssociationEndNavigableTypedBySelf, getAssociationEndNavigableTypedBySelfOrGeneralTransitive, getAssociationEndNavigableTypedBySelfOrGeneralTransitive, getAssociationEndTypedBySelf, getAssociationEndTypedBySelf, getAssociationEndTypedBySelfOrGeneralTransitive, getAssociationEndTypedBySelfOrGeneralTransitive, getAssociationNavigableFrom, getAssociationNavigableFrom, getAssociationOfSelfOrGeneralTransitive, getAssociationOfSelfOrGeneralTransitive, getAssociationTypedBySelf, getAssociationTypedBySelf, getClassifierViewGroup, getEffectiveRedefinerOfAssocEnd, getEffectiveRedefinerOfAssocEnd, getEffectiveSubsetterOfAssocEnd, getEffectiveSubsetterOfAssocEnd, getGeneralDirect, getGeneralDirect, getGeneralGeneralizationSet, getGeneralGeneralizationSet, getGeneralization, getGeneralTransitive, getGeneralTransitive, getOwnedAndInheritedMember, getOwnedAndInheritedMember, getPropertyNavigableFrom, getPropertyNavigableFrom, getPropertyNavigableFromSelfOrGeneralTransitive, getPropertyNavigableFromSelfOrGeneralTransitive, getSelfAndGeneralTransitive, getSelfAndGeneralTransitive, getSelfAndSpecificTransitive, getSelfAndSpecificTransitive, getSelfAndSpecificTransitiveNotAbstract, getSelfAndSpecificTransitiveNotAbstract, getSpecialization, getSpecificDirect, getSpecificDirect, getSpecificGeneralization, getSpecificGeneralizationSet, getSpecificGeneralizationSet, getSpecificTransitive, getSpecificTransitive, getSpecificTransitiveNotAbstract, getSpecificTransitiveNotAbstract, getSpecificTransitiveNotAbstractRange, getSpecificTransitiveNotAbstractRange, getSpecificTransitiveNotAbstractTypesOfEffectiveSubsetterOfAssocEnd, getSpecificTransitiveNotAbstractTypesOfEffectiveSubsetterOfAssocEnd, getSpecificTransitiveNotAbstractTypesOfEffectiveSubsetterOfAssocEndIntersectedByInverseAssocEnd, getSpecificTransitiveNotAbstractTypesOfEffectiveSubsetterOfAssocEndIntersectedByInverseAssocEnd, getTypedCLStructureEntry, getTypedMaskField, getTypesOfEffectiveSubsetterOfAssocEnd, getTypesOfEffectiveSubsetterOfAssocEnd, getViewTransitive, getViewTransitive, isAbstract, isRoot, isSpecificTransitive, setAbstractMethods inherited from interface ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface ELDeleteAble
deleteMethods inherited from interface ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getNotificationElement, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnitMethods inherited from interface ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKindMethods inherited from interface ELNamespaceAble
getElementImport, getImportedElement, getImportedElement, getImportedPackage, getImportedPackage, getItemDefinition, getMember, getMember, getMemberByPattern, getMemberByPattern, getOwnedConstraint, getOwnedMember, getOwnedMemberByPath, getOwnedMemberByPattern, getOwnedMemberByPattern, getOwnedMemberTransitiveByPattern, getOwnedMemberTransitiveByPattern, getOwnedMemberTransitiveByPatternIgnoreCase, getOwnedMemberTransitiveByPatternIgnoreCase, getPackageImportMethods inherited from interface ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibilityMethods inherited from interface ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface ELPackageAble
getElementImportingNamespace, getElementImportingNamespace, getImportedPackageAble, getOwningPackageMethods inherited from interface ELRedefAble
getRedefined, getRedefining, isLeaf, isRedefined, isRedefining, setLeaf, setRedefinedMethods inherited from interface ELType
getRaisingAsException, getTypedElement, getTypedElementNotAssocEnd, getTypedElementNotAssocEnd, isTypeReuseableMethods inherited from interface ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface ELValueContainerAble
getValueReUseAble, setValueReUseAbleMethods inherited from interface IMClassifier
getAllAssignedConstraint, getAllAssignedConstraint, getDirectlyCheckConstraintAssign, getForeignKeyReferencingOwnedUniqueKey, getForeignKeyReferencingOwnedUniqueKey, getImplementation, getOwnedFeature, getOwnedGeneralizationSet, getOwnedIMConstraint, getOwnedIMTrigger, getOwnedKey, getOwnedProperty, getPrimaryKey, getUniqueKeyReferencedByDefault, setImplementationMethods inherited from interface MECommentAble
getAssignedComment, getAssignedComment, getCommentAssignMethods inherited from interface MEConstraintAble
getAssignedConstraint, getAssignedConstraint, getConstraintAssignMethods inherited from interface MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getDataModel, getDataModelName, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColorMethods inherited from interface MENamedElement
getMappingSourceElement, getMappingSourceElement, getMESupplierDependency, getMESupplierMappingDependencyMethods inherited from interface MENamespaceAsgnAble
getSignatureMessageMethods inherited from interface MEPackageAble
getComponent, getManifestMethods inherited from interface MEStereotypeAble
getClientMappingDependency, getDecisionMade, getDecisionOwned, getKnowledgeSourceOfOwner, getMappingTargetElement, getMappingTargetElement, getMEClientDependency, getProxyAsgProperty, getRepresentingArtifact, getRequirementOfStakeholder, getRequirementOfStakeholderOwner, isMapped, setMapped, setRequirementOfStakeholderMethods inherited from interface METermAble
getTerm, setTermMethods inherited from interface MMAttachmentAble
getAssignedAttachment, getAttachmentAssign, getDefaultAttachment, getOwnedAttachment, setDefaultAttachmentMethods inherited from interface MMCommentContainerAble
getOutgoingConceptRealization, getOwnedComment, getRealizedConcept, getRealizedConcept, replaceRealizedConcepts, setRealizedConceptMethods inherited from interface MMLabelAble
getLabel, getLabelBoolValue, getLabelColor, getLabelInfo, getLabelLongValue, getLabelNameValue, getLabelStringValue, getLabelValueByPattern, getLabelValueByPattern, getLabelValueList, getOwnedLabelValSpec, hasLabel, modifyLabelValuesByName, setLabelInfoMethods inherited from interface MMStereotypeAble
assignStereotypeDlg, cloneElement, completelySynchronizeOthers, completelySynchronizeThis, getAttrCnstrEffective, getCreateTemplate, getDisplayType, getExtendingStereotype, getExtendingStereotypeNames, getOwnedFormat, getOwnedStereotypePropertyValSpec, getOwnedStereotypeTSOptionValSpec, getOwnedSyncedElement, getPropBoolValue, getPropLongValue, getPropStringValue, getPropValueList, getStereoPropValueByPattern, getStereoPropValueByPattern, getStereotype, getStereotypeName, getStereotypeProperty, getStereotypePropertyInfo, getStereotypePropertyNameValue, getStereotypeTSOption, getStereotypeTSOptionBoolValue, getStereotypeTSOptionInfo, getStereotypeTSOptionLongValue, getStereotypeTSOptionNameValue, getStereotypeTSOptionStringValue, getStereotypeTSOptionValueByPattern, getStereotypeTSOptionValueByPattern, getStereotypeTSOptionValueList, getSyncedElement, getSyncedStereotypeAble, getSyncedStereotypeAble, isCloneAbleElement, modifyStereotypePropertyValuesByName, modifyStereotypeTSOptionValuesByName, setExtendingStereotype, setStereotype, setStereotypePropertyInfo, setStereotypeTSOptionInfo, setSyncedStereotypeAble
-
Method Details
-
isWeak
True, if thisDBTableis weak.
A DB table is called weak, if it owns at least one identifying foreign key!- Throws:
InoNetExceptionSrvErrorException
-
setWeak
Set the value of Info IsWeak.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
hasMergedTable
- Throws:
InoNetExceptionSrvErrorException
-
setMergedTable
Set the value of Info HasMergedTable.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
isSplittedByColumn
If true, thisDBTablewas created by a split column command.
Such a table has a maximum one identifying foreign key, and the same requirementEREntityas its referenced table.- Throws:
InoNetExceptionSrvErrorException
-
getReferencedTable
- Throws:
InoNetExceptionSrvErrorException
-
getReferencedTable
The method calls getReferencedTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getMandatoryReferencedTable
- Throws:
InoNetExceptionSrvErrorException
-
getMandatoryReferencedTable
List<DBTable> getMandatoryReferencedTable(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getMandatoryReferencedTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getOptionalReferencedTable
- Throws:
InoNetExceptionSrvErrorException
-
getOptionalReferencedTable
List<DBTable> getOptionalReferencedTable(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getOptionalReferencedTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getReferencingTable
- Throws:
InoNetExceptionSrvErrorException
-
getReferencingTable
List<DBTable> getReferencingTable(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getReferencingTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getMandatoryReferencingTable
- Throws:
InoNetExceptionSrvErrorException
-
getMandatoryReferencingTable
List<DBTable> getMandatoryReferencingTable(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getMandatoryReferencingTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getOptionalReferencingTable
- Throws:
InoNetExceptionSrvErrorException
-
getOptionalReferencingTable
List<DBTable> getOptionalReferencingTable(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getOptionalReferencingTable and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getMaxOneForeignKey
Gets theDBForeignKeywhich is maximum one. This foreign key contains exactly the same columns as the primary key.- Throws:
InoNetExceptionSrvErrorException
-
getFirstLevelElements
<T extends MEModelElement> List<T> getFirstLevelElements(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The elements of the first level are all columns, unique keys and foreign keys that are not yet assigned to anDBMergedInstance. The primary key and its columns belongs to first level elements, even if they are assigned to an instance.- 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:
InoNetExceptionSrvErrorException
-
getFirstLevelElements
<T extends MEModelElement> List<T> getFirstLevelElements(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getFirstLevelElements 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 listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getElementExistentialDependencyIn
Gets the not null foreign keys of this thisDBTable.- Throws:
InoNetExceptionSrvErrorException
-
getElementExistentialDependencyIn
List<DBForeignKey> getElementExistentialDependencyIn(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getElementExistentialDependencyIn and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getElementExistentialDependencyOut
- Throws:
InoNetExceptionSrvErrorException
-
getElementExistentialDependencyOut
List<DBForeignKey> getElementExistentialDependencyOut(MMStereotype stereotype) throws InoNetException, SrvErrorException The method calls getElementExistentialDependencyOut and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getLeadingEntity
Returns the leadingEREntityof this table. The leading entity is the only one entity which is the target of aMEMappingDependencyowned by this table, but not the target of a mapping dependency owned by aDBMergedTablein this table.- Throws:
InoNetExceptionSrvErrorException
-
maintain
- Throws:
InoNetExceptionSrvErrorException
-
maintainCreatePrimaryKey
This maintaining method creates the primary key if it doesn't already exist.
Returns the newly-created primary key or null.- Throws:
InoNetExceptionSrvErrorException
-
splitH
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedColumn
List<DBTableColumn> getOwnedColumn(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException - Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate column order in the table.
-
getOwnedIndex
List<DBIndex> getOwnedIndex(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException - Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate index order in the table.
-
getOwnedUniqueKey
List<DBUniqueKey> getOwnedUniqueKey(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException - Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate key order in the table.
-
getOwnedForeignKey
List<DBForeignKey> getOwnedForeignKey(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException List of foreign keys of thisDBTable.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate foreign key order in the table.
-
getOwnedDBTrigger
List<DBTrigger> getOwnedDBTrigger(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException - Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate trigger order in the table.
-
getOwnedDBCheckConstraint
List<DBCheckConstraint> getOwnedDBCheckConstraint(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException List of check constraints owned by thisDBTable.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate constraint order in the table.
-
getOwnedMergedTable
List<DBMergedTable> getOwnedMergedTable(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException List of merged tables of this table.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the result may be sorted.
-
getOwnedDBSiblingConstraint
List<DBSiblingConstraint> getOwnedDBSiblingConstraint(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException List of constraints (disjoint tables) owned by this database table.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the list is sorted according to appropriate constraint order in the table.
-
getTypedByTableColumn
- Throws:
InoNetExceptionSrvErrorException
-