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.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 ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface ADHistoryAble
getCreateTime, getCreator, getHistory, getModifier, getModifyTime, modifyHistory, setHistoryMethods inherited from interface ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods 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 ELFeature
getEntryInGroupAble, getEntryInGroupAble, getUsingViewElement, isStatic, setStaticMethods inherited from interface ELMultiplicityAble
getLower, getLowerBoundAsString, getLowerUpperVal, getUpper, getUpperBoundAsString, hasMultiplicity11, hasUpper1, isMany, isMultivalued, isOptional, isOrdered, isUnique, setLower, setMany, setOptional, setOrdered, setUnique, setUpperMethods inherited from interface ELNamedElement
getName, getNameKind, getQualifiedDisplayName, getQualifiedName, getQualifiedTLName, getSupplierDependency, rename, setName, setNameKindMethods 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 ELProperty
getAggregation, getAssociation, getClassifierOfAssociationEnd, getDefaultValue, getOppositeAssociationEnd, getSelfAndSubsettedTransitive, getSelfAndSubsettedTransitive, getSelfAndSubsettingTransitive, getSelfAndSubsettingTransitive, getSubsettedProperty, getSubsettedTransitive, getSubsettedTransitive, getSubsettingProperty, getSubsettingTransitive, getSubsettingTransitive, isAssocOwner, isComposite, isDerived, isDerivedUnion, isNavigable, isNavigableAssocEnd, isSubsetted, isSubsetting, reconnectAssociation, setAggregation, setAssocOwner, setDefaultValue, setDerived, setDerivedUnion, setNavigableAssocEnd, setSubsettedPropertyMethods inherited from interface ELRedefAble
getRedefined, getRedefining, isLeaf, isRedefined, isRedefining, setLeaf, setRedefinedMethods inherited from interface ELStructFeature
getSlot, getStructuralFeatureAction, isReadOnly, setReadOnlyMethods inherited from interface ELTypedElement
getModifyTypedElementDeclaration, getType, getTypedElementCnstr, getTypeKind, getValSpecOfTypedElement, getValSpecOfTypedElementWithPattern, getValSpecOfTypedElementWithPattern, isBitmapAble, isColorAble, modifyTypedElementDeclaration, setTypeMethods inherited from interface ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface ELValueContainerAble
getValueReUseAble, setValueReUseAbleMethods inherited from interface ELViewNavigAble
getViewNavigAbleGroupMethods inherited from interface IMFeature
getIndex, getIndex, getIndexedFeature, getKey, getKey, getKeyFeature, getKeyRelationshipProperty, getKeyRelationshipProperty, getKeyRelationshipPropertyRecursive, getKeyRelationshipPropertyRecursive, getOwningClassifierMethods inherited from interface IMForeignKeyAble
getCubeDimension, getDimensionPrecedence, getForeignKey, isHierarchical, isNotNullMethods 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 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
-
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
-
getRelationship
The relationship this role is assigned to.- Throws:
InoNetExceptionSrvErrorException
-