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, MMAttachmentAble, MMCommentContainerAble, MMLabelAble, MMLabelTextAttachmentAble, MMStereotypeAble, MMTextAble
All Known Subinterfaces:
DBForeignKey, ERForeignKey

public interface IMKeyRelationship
extends IMKey

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
static class IMKeyRelationship.VAttr
           
 
Method Summary
<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.
 List<IMKeyRelationshipFeature> getOwnedKeyRelationshipFeature(K_CONTROL_OPTION... behaviourFlags)
          List of key relationship features of this IMKeyRelationship.
 IMUniqueKey getUniqueKey()
          Reference to the unique key referenced by this key relationship.
 IMClassifier getUniqueKeyClassifier()
          The classifier of the referenced IMUniqueKey.
 boolean isIdentifying()
          True, if this IMKeyRelationship is an identifying foreign key.
 boolean isMaxOne()
          True, if this IMKeyRelationship can store no more than one row for the same referenced row of the IMUniqueKey.
 boolean isOptional()
          True, if this IMKeyRelationship is an optional foreign key.
 void maintainDeleteForeignProperties()
          This maintaining method deletes the key relationship features which reference to an illegal IMUniqueKeyFeature.
 void setUniqueKey(IMUniqueKey value)
          Set the value of Foreign Key UniqueKey.
 
Methods inherited from interface de.mid.innovator.srv2api.icw2im.IMKey
getAddableProperty, getAddableProperty, getFeatureNames, getOwnedKeyFeature, getOwningClassifier, getProperty, getProperty, hasNullProperty, isCompleteInView, setFeatureNames, setNull
 
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.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.icw2elem.ELNamespaceAsgnAble
getMnClassicTREFName, getNamespace, getNamespaceName, getPath, getSeparator, getVisibility, setUniqueName, setVisibility
 
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.icw2elem.ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getResetDefaultName, getSupplierDependency, rename, setName, setNameKind, setResetDefaultName
 
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
 

Method Detail

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:
InoNetException
SrvErrorException

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 list
behaviourFlags - An optional list of enum values to control the behaviour of the command.
Throws:
InoNetException
SrvErrorException

getOwnedKeyRelationshipFeature

List<IMKeyRelationshipFeature> getOwnedKeyRelationshipFeature(K_CONTROL_OPTION... behaviourFlags)
                                                              throws InoNetException,
                                                                     SrvErrorException
List of key relationship features of this IMKeyRelationship.

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 feature order in the key.

getUniqueKey

IMUniqueKey getUniqueKey()
                         throws InoNetException,
                                SrvErrorException
Reference to the unique key referenced by this key relationship.

Throws:
InoNetException
SrvErrorException

getUniqueKeyClassifier

IMClassifier getUniqueKeyClassifier()
                                    throws InoNetException,
                                           SrvErrorException
The classifier of the referenced IMUniqueKey.

Throws:
InoNetException
SrvErrorException

isIdentifying

boolean isIdentifying()
                      throws InoNetException,
                             SrvErrorException
True, if this IMKeyRelationship is an identifying foreign key.
This is true if all of its members are part of the primary key of its IMClassifier.

Throws:
InoNetException
SrvErrorException

isMaxOne

boolean isMaxOne()
                 throws InoNetException,
                        SrvErrorException
True, if this IMKeyRelationship can store no more than one row for the same referenced row of the IMUniqueKey.
This is true if this foreign key contains the same set of members as any unique key of its IMClassifier.

Throws:
InoNetException
SrvErrorException

isOptional

boolean isOptional()
                   throws InoNetException,
                          SrvErrorException
True, if this IMKeyRelationship is an optional foreign key.
This is true if one member of it is nullable.

Throws:
InoNetException
SrvErrorException

maintainDeleteForeignProperties

void maintainDeleteForeignProperties()
                                     throws InoNetException,
                                            SrvErrorException
This maintaining method deletes the key relationship features which reference to an illegal IMUniqueKeyFeature. A unique key feature is illegal in this context if the owning IMUniqueKey is not the same as referenced by the IMKeyRelationship.
If a key relationship feature will be deleted within this maintaining method, the used IMStructuralFeature will be deleted too if no further key relationship features exist for this structural feature.

Throws:
InoNetException
SrvErrorException

setUniqueKey

void setUniqueKey(IMUniqueKey value)
                  throws InoNetException,
                         SrvErrorException
Set the value of Foreign Key UniqueKey.

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