Package de.mid.innovator.srv2api.icw2er
Interface ERRole
- All Superinterfaces:
ADClientAble,ADFindAble,ADHistoryAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELFeature,ELMultiplicityAble,ELMultiplicityAbleTypedElement,ELNamedElement,ELNamespaceAsgnAble,ELObject,ELProperty,ELRedefAble,ELStructFeature,ELTypedElement,ELUUIDAble,ELValueContainerAble,ELViewNavigAble,IMFeature,IMForeignKeyAble,IMStructuralFeature,MECommentAble,MEConstraintAble,MEModelElement,MENamedElement,MENamespaceAsgnAble,MEStereotypeAble,METermAble,MMAttachmentAble,MMCommentContainerAble,MMLabelAble,MMLabelTextAttachmentAble,MMStereotypeAble,MMTextAble
A
ERRole is a part of a ERRelationship which connects the relationship to an EREntity.
The (min,max) cardinaltiy of this role defines how often an instance of the connected entity can take part at the relationship.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetMax()Maximum cardinality of thisERRole.Maximum cardinality of thisERRolefor UML notation.getMin()The minimum number how often the connected entity must participate in the relationship.Gets a string with the cardinality in Chen notation - (Min,Max).Gets a string with the cardinality in UML notation using the minimum and maximum of the partner role.Minimum cardinality of thisERRolefor UML notation.Role name of thisERRolefor UML notation.Template dummy instance needed as owner substitute forEREntity.Reference to the relationship that owns the role.Gets the partner role of this role (the opposite role of the relationship.The relationship this role is assigned to.booleanIf true, theERRolecan be set to be on the foreign key side.
A role is a foreign key candidate if the upper value is 1, unless the partner role does not have a (1,1) cardinality.booleanIf true, theERRoleis on the foreign key side of itsERRelationship.booleanIf true, theERRoleis on the unique key side of itsERRelationship.maintain()This maintaining method creates the missedERForeignKeyfor thisERRole.
Returns the newly-created foreign key or null.voidsetConnectedEntity(EREntity value) Set the value of Foreign Key ConnectedEntity.voidsetForeignKeySide(boolean value) Set the value of Info IsForeignKeySide.voidsetForeignKeySideAndMaintain(boolean value) Set the value of Info IsForeignKeySide.voidSet the value of Info Max.voidsetMaxAndMaintain(String value) Set the value of Info Max.voidSet the value of Info MaxUML.voidsetMaxUMLAndMaintain(String value) Set the value of Info MaxUML.voidSet the value of Info Min.voidsetMinAndMaintain(String value) Set the value of Info Min.voidSets the role cardinality to (min,max).voidSet the value of Info MinUML.voidsetMinUMLAndMaintain(String value) Set the value of Info MinUML.voidsetNameUML(String value) Set the value of Info NameUML.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.ELFeature
getEntryInGroupAble, getEntryInGroupAble, getUsingViewElement, isStatic, setStaticMethods 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, setUpperMethods 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.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, setSubsettedPropertyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELRedefAble
getRedefined, getRedefining, isLeaf, isRedefined, isRedefining, setLeaf, setRedefinedMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELStructFeature
getSlot, getStructuralFeatureAction, isReadOnly, setReadOnlyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELTypedElement
getModifyTypedElementDeclaration, getType, getTypedElementCnstr, getTypeKind, getValSpecOfTypedElement, getValSpecOfTypedElementWithPattern, getValSpecOfTypedElementWithPattern, isBitmapAble, isColorAble, modifyTypedElementDeclaration, setTypeMethods 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.icw2elem.ELViewNavigAble
getViewNavigAbleGroupMethods inherited from interface de.mid.innovator.srv2api.icw2im.IMFeature
getIndex, getIndex, getIndexedFeature, getKey, getKey, getKeyFeature, getKeyRelationshipProperty, getKeyRelationshipProperty, getKeyRelationshipPropertyRecursive, getKeyRelationshipPropertyRecursive, getOwningClassifierMethods inherited from interface de.mid.innovator.srv2api.icw2im.IMForeignKeyAble
getCubeDimension, getDimensionPrecedence, getForeignKey, isHierarchical, isNotNullMethods 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
-
isForeignKeyCandidate
If true, theERRolecan be set to be on the foreign key side.
A role is a foreign key candidate if the upper value is 1, unless the partner role does not have a (1,1) cardinality.- Throws:
InoNetExceptionSrvErrorException
-
isForeignKeySide
If true, theERRoleis on the foreign key side of itsERRelationship.- Throws:
InoNetExceptionSrvErrorException
-
setForeignKeySide
Set the value of Info IsForeignKeySide.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setForeignKeySideAndMaintain
Set the value of Info IsForeignKeySide.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
isUniqueKeySide
If true, theERRoleis on the unique key side of itsERRelationship.- Throws:
InoNetExceptionSrvErrorException
-
getMin
The minimum number how often the connected entity must participate in the relationship.- Throws:
InoNetExceptionSrvErrorException
-
setMin
Set the value of Info Min.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMinAndMaintain
Set the value of Info Min.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMax
Maximum cardinality of thisERRole. This is equal to the 'upper' attribute of its super classELMultiplicityAble.
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created automatically.
The property dialog of an Innovator Client uses the maintaining variant.
Note: 'Min' and 'Max' of the role define how often an instance of the entity can take part to its relationship. P.e. the (1,1) cardinality leads to an foreign key in the connectedEREntity.- Throws:
InoNetExceptionSrvErrorException
-
setMax
Set the value of Info Max.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMaxAndMaintain
Set the value of Info Max.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMinMaxString
Gets a string with the cardinality in Chen notation - (Min,Max).- Throws:
InoNetExceptionSrvErrorException
-
getMinUML
Minimum cardinality of thisERRolefor UML notation. Sets the minimum of the partner role which is the logical location for this property in the ER context!
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created.
The property dialog of an Innovator Client uses the maintaining variant.- Throws:
InoNetExceptionSrvErrorException
-
setMinUML
Set the value of Info MinUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMinUMLAndMaintain
Set the value of Info MinUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMaxUML
Maximum cardinality of thisERRolefor UML notation. Sets the maximum of the partner role which is the logical location for this property in the ER context!
The maintaining variant of the setter will eventually set one role of theERRelationshipto be on the foreign key side. This depends on the cardinality of both roles. In this case, the foreign key and the foreign key attributes will be created automatically.
The property dialog of an Innovator Client uses the maintaining variant.
Note: 'Min' and 'Max' of the role define how often an instance of the connected entity can be in a relationship with an instance of the partner entity. E.g. the (1,1) cardinality leads to an foreign key in the connectedEREntity.- Throws:
InoNetExceptionSrvErrorException
-
setMaxUML
Set the value of Info MaxUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
setMaxUMLAndMaintain
Set the value of Info MaxUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMinMaxStringUML
Gets a string with the cardinality in UML notation using the minimum and maximum of the partner role.- Throws:
InoNetExceptionSrvErrorException
-
getNameUML
Role name of thisERRolefor UML notation. This is the name of the partner role which is the logical location for this property in the ER context!- Throws:
InoNetExceptionSrvErrorException
-
setNameUML
Set the value of Info NameUML.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
maintain
- Throws:
InoNetExceptionSrvErrorException
-
maintainForeignKey
This maintaining method creates the missedERForeignKeyfor thisERRole.
Returns the newly-created foreign key or null.- Throws:
InoNetExceptionSrvErrorException
-
setMinMax
Sets the role cardinality to (min,max).- Parameters:
Min- Minimum valueMax- Maximum valueMaintain- if true, call MaintainCmd at the end- Throws:
InoNetExceptionSrvErrorException
-
getPartnerRole
Gets the partner role of this role (the opposite role of the relationship. Generic view of 'opposite association end' in class property.- Throws:
InoNetExceptionSrvErrorException
-
getConnectedEntity
- Throws:
InoNetExceptionSrvErrorException
-
setConnectedEntity
Set the value of Foreign Key ConnectedEntity.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOwningCreateCLInst
Template dummy instance needed as owner substitute forEREntity.- Throws:
InoNetExceptionSrvErrorException
-
getOwningEntity
Reference to the entity that owns the role. The reference may be empty if the role is owned by the relationship. If the role is owned by an entity, this entity is at the referencing side (foreign key) of the relationship.- Throws:
InoNetExceptionSrvErrorException
-
getOwningRelationship
Reference to the relationship that owns the role. The reference may be empty if the role is owned by an entity.- Throws:
InoNetExceptionSrvErrorException
-
getRelationship
The relationship this role is assigned to.- Throws:
InoNetExceptionSrvErrorException
-