|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.change_vision.jude.api.inf.editor.ERModelEditor
public ERModelEditor
Interface to edit (create/delete) ER Models. Throws Exception when invalid models are generated. (e.g. Duplicated models with the same name are created in an ER Model.)
Method Summary | |
---|---|
abstract IERAttribute |
createERAttribute(IEREntity entity,
String logicalName,
String physicalName,
IERDatatype type)
Create an ER attribute in an ER entity. |
abstract IERAttribute |
createERAttribute(IEREntity entity,
String logicalName,
String physicalName,
IERDomain domain)
Create an ER attribute with a domain in an ER entity. |
abstract IERDatatype |
createERDatatype(IERModel erModel,
String name)
Create an data type in a schema. |
abstract IERDomain |
createERDomain(IERModel erModel,
IERDomain parentDomain,
String logicalName,
String physicalName,
IERDatatype type)
Create a domain in a schema or domain. |
abstract IEREntity |
createEREntity(IERSchema schema,
String logicalName,
String physicalName)
Create an ER entity in a schema. |
abstract IERIndex |
createERIndex(String name,
IEREntity parentEntity,
boolean isUnique,
boolean isKey,
IERAttribute[] erAttributes)
Create an Index of ERAttribute. |
abstract IERModel |
createERModel(IModel root,
String name)
Create an ER model in a project. |
abstract IERRelationship |
createIdentifyingRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName)
Create an identifying relationship between a parent EREntity and a child EREntity. |
abstract IERRelationship |
createIdentifyingRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName,
IERIndex erIndex)
Create an identifying relationship between a parent EREntity and a child EREntity. |
abstract IERRelationship |
createMultiToMultiRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName)
Create a multi-to-multi relationship between ER entities. |
abstract IERRelationship |
createNonIdentifyingRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName)
Create a non-identifying relationship between a parent EREntity and a child EREntity. |
abstract IERRelationship |
createNonIdentifyingRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName,
IERIndex erIndex)
Create a non-identifying relationship between a parent EREntity and a child EREntity. |
abstract IERSubtypeRelationship |
createSubtypeRelationship(IEREntity parentEntity,
IEREntity childEntity,
String logicalName,
String physicalName)
Create a subtype between EREntities. |
abstract void |
delete(IElement element)
Delete models or elements from a project. |
Method Detail |
---|
abstract IERModel createERModel(IModel root, String name)
name
- ER Model Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. MULTI_ER_MODEL_ERROR_KEY - if an ER model cannot be created because an ER model exists in the project. NO_NAME_ERROR_KEY - if the name is empty. 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.
Values: Error messages for exceptions.
abstract IEREntity createEREntity(IERSchema schema, String logicalName, String physicalName)
schema
- SchemalogicalName
- Logical NamephysicalName
- Physical Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. 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.
Values: Error messages for exceptions.
abstract IERAttribute createERAttribute(IEREntity entity, String logicalName, String physicalName, IERDatatype type)
entity
- ER EntitylogicalName
- Logical NamephysicalName
- Physical Nametype
- Data Type of Attribute
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. 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 IERAttribute createERAttribute(IEREntity entity, String logicalName, String physicalName, IERDomain domain)
entity
- ER EntitylogicalName
- Logical NamephysicalName
- Physical Namedomain
- Domain
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. 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 IERDatatype createERDatatype(IERModel erModel, String name)
erModel
- ER Modelname
- Data Type Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. 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.
Values: Error messages for exceptions.
abstract IERDomain createERDomain(IERModel erModel, IERDomain parentDomain, String logicalName, String physicalName, IERDatatype type)
erModel
- ER ModelparentDomain
- Parent DomainlogicalName
- Logical NamephysicalName
- Physical Nametype
- Data Type
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. 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 IERRelationship createIdentifyingRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName)
parentEntity
- Parent EntitychildEntity
- Child EntitylogicalName
- Identifying Logical NamephysicalName
- Identifying Physical Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: INVALID_ERINDEX_FOR_RELATIONSHIP_ERROR_KEY - if an ERIndex is not unique. PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. SELF_RELATION_KEY - if the self relationship is not allowed. 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 IERRelationship createIdentifyingRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName, IERIndex erIndex)
parentEntity
- Parent EntitychildEntity
- Child EntitylogicalName
- Identifying Logical NamephysicalName
- Identifying Physical NameerIndex
- ERIndex of the relationship
InvalidEditingException
- InvalidEditingException occurs.
Keys: INVALID_ERINDEX_FOR_RELATIONSHIP_ERROR_KEY - if an ERIndex is not unique. PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. SELF_RELATION_KEY - if the self relationship is not allowed. 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 IERRelationship createNonIdentifyingRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName)
parentEntity
- Parent EntitychildEntity
- Child EntitylogicalName
- Non-Identifying Relationship Logical NamephysicalName
- Non-Identifying Relationship Physical Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. SELF_RELATION_KEY - if the self relationship is not allowed. 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 IERRelationship createNonIdentifyingRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName, IERIndex erIndex)
parentEntity
- Parent EntitychildEntity
- Child EntitylogicalName
- Non-Identifying Relationship Logical NamephysicalName
- Non-Identifying Relationship Physical NameerIndex
- ERIndex of the relationship
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. SELF_RELATION_KEY - if the self relationship is not allowed. 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 IERRelationship createMultiToMultiRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName)
entity1
- ER Entity 1entity2
- ER Entity 2logicalName
- Multi-to-Multi Relationship Logical NamephysicalName
- Multi-to-Multi Relationship Physical Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. NO_NAME_ERROR_KEY - if the name is empty. NAME_DOUBLE_ERROR_KEY - An element with the same name already exists. SELF_RELATION_KEY - if the self relationship is not allowed. BAD_TRANSACTION_KEY - Bad Transaction. HAS_EXCEPTION_KEY - if an exception has occurred.
Values: Error messages for exceptions.
abstract IERSubtypeRelationship createSubtypeRelationship(IEREntity parentEntity, IEREntity childEntity, String logicalName, String physicalName)
entity1
- ER Entity 1entity2
- ER Entity 2logicalName
- Subtype Logical NamephysicalName
- Physical Name
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. SUBTYPE_LOOP_KEY - if the subtype relationship is set. SUBTYPE_EXIST_KEY - if the subtype already exists. NO_NAME_ERROR_KEY - if the name is empty. 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 IERIndex createERIndex(String name, IEREntity parentEntity, boolean isUnique, boolean isKey, IERAttribute[] erAttributes)
name
- Index NameparentEntity
- Parent EREntityisUnique
- Is unique or notisKey
- Is Key(AK,IE) or noterAttributes
- Target Attributes
InvalidEditingException
- InvalidEditingException occurs.
Keys: PARAMETER_ERROR_KEY - if a parameter is not set properly. ILLEGALMODELTYPE_ERROR_KEY - if the model type is illegal. INVALID_ATTRIBUTE_FOR_ERINDEX_ERROR_KEY - if an attribute does not belong to ERIndex's parent entity. 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 delete(IElement element)
element
- Element
InvalidEditingException
- InvalidEditingException occurs.
Keys: 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |