|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.change_vision.jude.api.inf.model.IERAttribute
public IERAttribute
Interface for ERAttribute.
Field Summary |
---|
Fields inherited from class com.change_vision.jude.api.inf.model.INamedElement |
---|
PACKAGE_VISIBILITY, PRIVATE_VISIBILITY, PROTECTED_VISIBILITY, PUBLIC_VISIBILITY |
Method Summary | |
---|---|
abstract IConstraint |
getConstraint(String constraintName)
Get Constraint. |
abstract IERDatatype |
getDatatype()
Get Datatype. |
abstract String |
getDefaultValue()
Get Default Value. |
abstract IERDomain |
getDomain()
Get Domain. |
abstract IERIndex[] |
getERIndices()
Get ERIndices. |
abstract String |
getLengthPrecision()
Get Length/Precision. |
abstract String |
getLogicalName()
Get Logical Name. |
abstract String |
getPhysicalName()
Get Physical Name. |
abstract IERAttribute[] |
getReferencedForeignKeys()
Get referenced foreign keys. |
abstract IERAttribute |
getReferencedPrimaryKey()
Get referenced primary key. |
abstract IERRelationship |
getReferencedRelationship()
Get referenced relationship. |
abstract IERSubtypeRelationship[] |
getReferencedSubtypeRelationships()
Get referenced subtype relationships. |
abstract IERSubtypeRelationship |
getSubtypeForeignKeyInv()
Get associated subtype relationship as discriminator attribute. |
abstract boolean |
isForeignKey()
Check if the attribute is foreign key. |
abstract boolean |
isNotNull()
Check if the attribute is NOT NULL. |
abstract boolean |
isPrimaryKey()
Check if the attribute is primary key. |
abstract void |
setDatatype(IERDatatype datatype)
Set Datatype. |
abstract void |
setDefaultValue(String defaultValue)
Set Default Value. |
abstract void |
setDomain(IERDomain domain)
Set Domain. |
abstract void |
setLengthPrecision(String value)
Set Length and Precision. |
abstract void |
setLogicalName(String name)
Set Logical Name. |
abstract void |
setNotNull(boolean isNotNull)
Set Not Null. |
abstract void |
setPhysicalName(String name)
Set Physical Name. |
abstract void |
setPrimaryKey(boolean isPrimaryKey)
Set Primary Key. |
Methods inherited from class com.change_vision.jude.api.inf.model.INamedElement |
---|
getAlias1, getAlias2, getClientDependencies, getClientRealizations, getClientUsages, getConstraints, getDefinition, getDiagrams, getFullName, getFullNamespace, getName, getSupplierDependencies, getSupplierRealizations, getSupplierUsages, isPackageVisibility, isPrivateVisibility, isProtectedVisibility, isPublicVisibility, setAlias1, setAlias2, setDefinition, setName, setVisibility |
Methods inherited from class com.change_vision.jude.api.inf.model.IElement |
---|
addStereotype, getComments, getContainer, getContainers, getId, getOwner, getPresentations, getStereotypes, getTaggedValues, getTypeModifier, hasStereotype, isReadOnly, removeStereotype, setTypeModifier |
Methods inherited from class com.change_vision.jude.api.inf.model.IHyperlinkOwner |
---|
createElementHyperlink, createFileHyperlink, createURLHyperlink, deleteHyperlink, getHyperlinks |
Method Detail |
---|
abstract String getLogicalName()
abstract String getPhysicalName()
abstract boolean isPrimaryKey()
abstract boolean isForeignKey()
abstract IERDomain getDomain()
abstract IERDatatype getDatatype()
abstract String getLengthPrecision()
abstract boolean isNotNull()
abstract String getDefaultValue()
abstract IConstraint getConstraint(String constraintName)
constraintName
- Constraint Name.
abstract IERAttribute getReferencedPrimaryKey()
abstract IERAttribute[] getReferencedForeignKeys()
abstract IERIndex[] getERIndices()
abstract IERRelationship getReferencedRelationship()
abstract IERSubtypeRelationship[] getReferencedSubtypeRelationships()
abstract IERSubtypeRelationship getSubtypeForeignKeyInv()
abstract void setLogicalName(String name)
name
- Logical Name. It should NOT be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. NO_NAME_ERROR_KEY - if the name is empty. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setPhysicalName(String name)
name
- Physical Name. It should NOT be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setPrimaryKey(boolean isPrimaryKey)
isPrimaryKey
- true to set a primary key, false to unset a primary key.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setDomain(IERDomain domain)
domain
- Domain. It should NOT be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setDatatype(IERDatatype datatype)
datatype
- Datatype. It should not be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setLengthPrecision(String value)
value
- Length and Precision:
value "10" : Length 10 value "10,5" : Length 10, Precision 5 To set Length and Precision, Datatype option for Length and Precision is referred. None : value should NOT be set. Optional : value is optional. Required : value is required. It should NOT be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setNotNull(boolean isNotNull)
isNotNull
- true to set Not Null constraint, false to set Not Null constraint.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
abstract void setDefaultValue(String defaultValue)
defaultValue
- Default Value. It should NOT be null.
InvalidEditingException
- InvalidEditingException occurs.
Keys: ILLEGAL_VERSION_ERROR_KEY - if Editing API is used in astah* community. PARAMETER_ERROR_KEY - if a parameter is not set properly. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred. READ_ONLY_KEY - if a read-only element is edited.
Values: Error messages for exceptions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |