Package de.mid.innovator.srv2api.icw2im
Interface IMKeyRelationship
- All Superinterfaces:
ADClientAble,ADFindAble,ADHistoryAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELNamedElement,ELNamespaceAsgnAble,ELObject,ELUUIDAble,ELValueContainerAble,IMKey,MECommentAble,MEConstraintAble,MEModelElement,MENamedElement,MENamespaceAsgnAble,MEStereotypeAble,METermAble,MMAttachmentAble,MMCommentContainerAble,MMLabelAble,MMLabelTextAttachmentAble,MMStereotypeAble,MMTextAble
- All Known Subinterfaces:
DBForeignKey,ERForeignKey
This is a utility class for IMKeyRelationship that provides static methods for creation or other purposes.
- Note:
- The interface IMKeyRelationship describes an abstract ability of an object. Therefore no instances of this type can be found in the repository!
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetJoinExpressionFlow(IMViewFrom ohUniqueKeyFrom, IMViewFrom ohForeignKeyFrom) Returns the expression for the key relationship join, formatted as flow document.<T extends IMClassifier>
List<T> getKeyClassifier(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Returns a list of two elements.<T extends IMClassifier>
List<T> getKeyClassifier(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getKeyClassifier and filters its return values according to the given stereotype value.getOwnedKeyRelationshipFeature(K_CONTROL_OPTION... behaviourFlags) List of key relationship features of thisIMKeyRelationship.Reference to the unique key referenced by this key relationship.The classifier of the referencedIMUniqueKey.<T extends IMViewFrom>
List<T> getViewFrom(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) All FROM Clauses using thisIMKeyRelationship.booleanTrue, if thisIMKeyRelationshipis an identifying foreign key.
This is true if all of its members are part of the primary key of itsIMClassifier.booleanisMaxOne()True, if thisIMKeyRelationshipcan store no more than one row for the same referenced row of theIMUniqueKey.
This is true if this foreign key contains the same set of members as any unique key of itsIMClassifier.booleanTrue, if thisIMKeyRelationshipis an optional foreign key.
This is true if one member of it is nullable.voidThis maintaining method deletes the key relationship features which reference to an illegalIMUniqueKeyFeature.voidsetUniqueKey(IMUniqueKey value) Set the value of Foreign Key UniqueKey.voidSet the value of Foreign Key UniqueKey.Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistoryMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
deleteMethods inherited from interface de.mid.innovator.srv2api.icw2elem.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 de.mid.innovator.srv2api.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKindMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibilityMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELValueContainerAble
getValueReUseAble, setValueReUseAbleMethods inherited from interface de.mid.innovator.srv2api.icw2im.IMKey
getAddableProperty, getAddableProperty, getFeatureNames, getOwnedKeyFeature, getOwningClassifier, getProperty, getProperty, hasNullProperty, isCompleteInView, setFeatureNames, setNullMethods inherited from interface de.mid.innovator.srv2api.icw2model.MECommentAble
getAssignedComment, getAssignedComment, getCommentAssignMethods inherited from interface de.mid.innovator.srv2api.icw2model.MEConstraintAble
getAssignedConstraint, getAssignedConstraint, getConstraintAssignMethods inherited from interface de.mid.innovator.srv2api.icw2model.MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getDataModel, getDataModelName, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColorMethods inherited from interface de.mid.innovator.srv2api.icw2model.MENamedElement
getMappingSourceElement, getMappingSourceElement, getMESupplierDependency, getMESupplierMappingDependencyMethods inherited from interface de.mid.innovator.srv2api.icw2model.MENamespaceAsgnAble
getMENamespace, getSignatureMessageMethods inherited from interface de.mid.innovator.srv2api.icw2model.MEStereotypeAble
getApplicableAnalysisDia, getClientMappingDependency, getDecisionMade, getDecisionOwned, getKnowledgeSourceOfOwner, getMappingTargetElement, getMappingTargetElement, getProxyAsgProperty, getRepresentingArtifact, getRequirementOfStakeholder, getRequirementOfStakeholderOwner, isMapped, setMapped, setRequirementOfStakeholderMethods inherited from interface de.mid.innovator.srv2api.icw2model.METermAble
getTerm, setTermMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMAttachmentAble
getAssignedAttachment, getAttachmentAssign, getDefaultAttachment, getOwnedAttachment, setDefaultAttachmentMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMCommentContainerAble
getOutgoingConceptRealization, getOwnedComment, getRealizedConcept, getRealizedConcept, replaceRealizedConcepts, setRealizedConceptMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMLabelAble
getLabel, getLabelBoolValue, getLabelColor, getLabelInfo, getLabelLongValue, getLabelNameValue, getLabelStringValue, getLabelValueByPattern, getLabelValueByPattern, getLabelValueList, getOwnedLabelValSpec, hasLabel, modifyLabelValuesByName, setLabelInfoMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMStereotypeAble
assignStereotypeDlg, cloneElement, completelySynchronizeOthers, completelySynchronizeThis, getAttrCnstrEffective, getCreateTemplate, getDisplayType, 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, setStereotype, setStereotypePropertyInfo, setStereotypeTSOptionInfo, setSyncedStereotypeAbleMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMTextAble
getFlowExpandedValue, getModifyFlowDocuments, getModifyTextValues, getModifyTextValuesDlgInit, getOwnedTextValue, getOwnedTextValueByPattern, getText, getTextExpandedValue, getTextStringValue, getURIList, modifyFlowDocuments, modifyTextValuesDlg
-
Method Details
-
isIdentifying
True, if thisIMKeyRelationshipis an identifying foreign key.
This is true if all of its members are part of the primary key of itsIMClassifier.- Throws:
InoNetExceptionSrvErrorException
-
isOptional
True, if thisIMKeyRelationshipis an optional foreign key.
This is true if one member of it is nullable.- Throws:
InoNetExceptionSrvErrorException
-
isMaxOne
True, if thisIMKeyRelationshipcan store no more than one row for the same referenced row of theIMUniqueKey.
This is true if this foreign key contains the same set of members as any unique key of itsIMClassifier.- Throws:
InoNetExceptionSrvErrorException
-
getKeyClassifier
<T extends IMClassifier> List<T> getKeyClassifier(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException Returns a list of two elements. The first element is the classifier which owns the referenced unique key. The second element is the classifier which owns this foreign key.- 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
-
getKeyClassifier
<T extends IMClassifier> List<T> getKeyClassifier(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getKeyClassifier 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
-
getUniqueKeyClassifier
The classifier of the referencedIMUniqueKey.- Throws:
InoNetExceptionSrvErrorException
-
getJoinExpressionFlow
String getJoinExpressionFlow(IMViewFrom ohUniqueKeyFrom, IMViewFrom ohForeignKeyFrom) throws InoNetException, SrvErrorException Returns the expression for the key relationship join, formatted as flow document.- Parameters:
ohUniqueKeyFrom- The From Clause referencing the unique key classifierohForeignKeyFrom- The From Clause referencing the foreign key classifier- Throws:
InoNetExceptionSrvErrorException
-
maintainDeleteForeignProperties
This maintaining method deletes the key relationship features which reference to an illegalIMUniqueKeyFeature. A unique key feature is illegal in this context if the owningIMUniqueKeyis not the same as referenced by theIMKeyRelationship.
If a key relationship feature will be deleted within this maintaining method, the usedIMStructuralFeaturewill be deleted too if no further key relationship features exist for this structural feature.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedKeyRelationshipFeature
List<IMKeyRelationshipFeature> getOwnedKeyRelationshipFeature(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException List of key relationship features of thisIMKeyRelationship.- 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 feature order in the key.
-
getViewFrom
<T extends IMViewFrom> List<T> getViewFrom(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All FROM Clauses using thisIMKeyRelationship.- 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
-
getUniqueKey
Reference to the unique key referenced by this key relationship.- Throws:
InoNetExceptionSrvErrorException
-
setUniqueKey
Set the value of Foreign Key UniqueKey.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setUniqueKeyAndMaintain
Set the value of Foreign Key UniqueKey.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-