com.dbmain.jidbm
Class DBMEntityType

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMDataObject
              extended by com.dbmain.jidbm.DBMEntityRelationshipType
                  extended by com.dbmain.jidbm.DBMEntityType
All Implemented Interfaces:
DBMAttributeOwner, DBMProcessingUnitOwner

public class DBMEntityType
extends DBMEntityRelationshipType

The DBMEntityType class represents entity type objects of the DB-MAIN repository.

A entity type can have several sub-types, roles and clusters.


Field Summary
 
Fields inherited from class com.dbmain.jidbm.DBMGenericObject
ALLPARENTS, CLUSTER, CO_ATTRIBUTE, COLLECTION, CONNECTION, CONS_PU, CONS_RES, CONSTRAINT, CONSUMPTION, ELEMENT, ENTITY_TYPE, ENVIRONMENT, ETROUND, ETSHADOW, ETSQUARE, GRAPHCOUPLE, GROUP, HAVESEL, HIDEASSOCIATION, HIDEATT, HIDECTRLFLOW, HIDEEXTEND, HIDEGENACT, HIDEGENUC, HIDEGR, HIDEINCLUDE, HIDENEWADD, HIDENOTE, HIDEOBJFLOW, HIDEPRIMID, HIDEPROD, HIDEPU, HIDESTEREOTYPE, ISASTRAIGHT, LOCK_USED, MARK1, MARK2, MARK3, MARK4, MARK5, MEMBER_CST, META_OBJECT, META_PROPERTY, METH_USED, NN_NOTE, NOTE, PROC_UNIT, PROCESS_TITLE, PROD_SET, RE_ISA, REJECTED, REL_ELEMENT, REL_TYPE, RESOURCE, ROLE, RTROUND, RTSHADOW, RTSQUARE, SCHEMA, SELECT, SHOWTYPEATT, SI_ATTRIBUTE, STATE, SUB_TYPE, SYSTEM, TEXT, TEXT_LINE, UMLCENTER, UMLCENTERDOWN, UMLCENTERUP, UMLLEFTCENTER, UMLLEFTDOWN, UMLLEFTUP, UMLRIGHTCENTER, UMLRIGHTDOWN, UMLRIGHTUP, USER_OBJECT, USER_VIEW, WITHOUT_SELECT
 
Constructor Summary
DBMEntityType(int id)
          Creates a new instance of the DBMEntityType class representing the entity type identified by id and the current project in DB-MAIN.
DBMEntityType(int id, long sysid)
          Creates a new instance of the DBMEntityType class representing the entity type identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstCluster(DBMCluster cur)
          Adds a first cluster (cur) to the current entity type in the DB-MAIN repository.
 void addFirstSubType(DBMSubType cur)
          Adds a first sub-type (cur) to the current entity type in the DB-MAIN repository.
 void addNextCluster(DBMCluster cur, DBMCluster prev)
          Adds a cluster (cur) following the cluster (prev) to the current entity type in the DB-MAIN repository.
 void addNextSubType(DBMSubType cur, DBMSubType prev)
          Adds a sub-type (cur) following the sub-type (prev) to the current entity type in the DB-MAIN repository.
 DBMAttribute addTechnicalIdentifier(boolean show)
          Add a technical identifier to the current entity type.
 DBMCluster createCluster(java.lang.String cluster_id, short type, java.lang.String criterion)
          Creates a new instance of cluster attached to the current entity type in the DB-MAIN repository.
 DBMSubType createSubType(java.lang.String value, DBMCluster cluster)
          Creates a new instance of sub-type attached to the current entity type in the DB-MAIN repository.
 void deleteEntityType()
          Deletes the entity type of the DB-MAIN repository represented by the current DBMEntityType instance.
 DBMCluster getFirstCluster()
          Returns the first cluster of the current entity type in the DB-MAIN repository.
 DBMRole getFirstRole()
          Returns the first role of the current entity type in the DB-MAIN repository.
 DBMSubType getFirstSubType()
          Returns the first sub-type of the current entity type in the DB-MAIN repository.
 DBMCluster getLastCluster()
          Returns the last cluster of the current entity type in the DB-MAIN repository.
 DBMRole getLastRole()
          Returns the last role of the current entity type in the DB-MAIN repository.
 DBMSubType getLastSubType()
          Returns the last sub-type of the current entity type in the DB-MAIN repository.
 DBMCluster getNextCluster(DBMCluster cur)
          Returns the cluster (of the current entity type) that follows the cluster cur in the DB-MAIN repository.
 DBMRole getNextRole(DBMRole cur)
          Returns the role (of the current entity type) that follows the role cur in the DB-MAIN repository.
 DBMSubType getNextSubType(DBMSubType cur)
          Returns the sub-type (of the current entity type) that follows the sub-type cur in the DB-MAIN repository.
 DBMCluster getPreviousCluster(DBMCluster cur)
          Returns the cluster (of the current entity type) that precedes the cluster cur in the DB-MAIN repository.
 DBMRole getPreviousRole(DBMRole cur)
          Returns the role (of the current entity type) that precedes the role cur in the DB-MAIN repository.
 DBMSubType getPreviousSubType(DBMSubType cur)
          Returns the sub-type (of the current entity type) that precedes the sub-type cur in the DB-MAIN repository.
 void removeCluster()
          Removes the list of cluster attached to the current entity type in the DB-MAIN repository.
 void removeRole()
          Removes the list of role attached to the current entity type in the DB-MAIN repository.
 void removeRole(DBMRole cur)
          Removes a role attached to the current entity type in the DB-MAIN repository.
 void removeSubType()
          Removes the list of sub-type attached to the current entity type in the DB-MAIN repository.
 DBMEntityType splitMergeEntityType(boolean show)
          Split/Merge the current entity type.
 DBMAttribute transformIntoAttribute(boolean show)
          Transform the current entity type into an attribute.
 DBMRelationshipType transformIntoRelationshipType(boolean show)
          Transform the current entity type into a relationship type.
 java.lang.Object[] transformRelationshipTypeIntoSubType(boolean show)
          Transform relationship types of the current entity type into sub-types.
 java.lang.Object[] transformSubTypeIntoRelationshipType(boolean show)
          Transform sub-types of the current entity type into relationship types.
 
Methods inherited from class com.dbmain.jidbm.DBMEntityRelationshipType
addFirstAttribute, addFirstProcessingUnit, addNextAttribute, addNextProcessingUnit, copyAttribute, copyProcessingUnit, createCompoundAttribute, createProcessingUnit, createSimpleAttribute, createUniqueCompoundAttribute, createUniqueProcessingUnit, createUniqueSimpleAttribute, deleteEntityRelationshipType, findAttribute, findProcessingUnit, getFirstAttribute, getFirstAttributeCompoundAttribute, getFirstAttributeSimpleAttribute, getFirstProcessingUnit, getLastAttribute, getLastAttributeCompoundAttribute, getLastAttributeSimpleAttribute, getLastProcessingUnit, getNextAttribute, getNextAttributeCompoundAttribute, getNextAttributeSimpleAttribute, getNextProcessingUnit, getPreviousAttribute, getPreviousAttributeCompoundAttribute, getPreviousAttributeSimpleAttribute, getPreviousProcessingUnit, removeAttribute, removeProcessingUnit, unprefixAttribute
 
Methods inherited from class com.dbmain.jidbm.DBMDataObject
addFirstGroup, addFirstSimpleAttribute, addNextGroup, addNextSimpleAttribute, copyGroup, createGroup, createUniqueGroup, deleteDataObject, getFirstAccessKey, getFirstCollection, getFirstGroup, getFirstReferentialConstraint, getFirstSecondaryIdentifier, getFirstSimpleAttribute, getLastCollection, getLastGroup, getLastSimpleAttribute, getNextAccessKey, getNextCollection, getNextGroup, getNextReferentialConstraint, getNextSecondaryIdentifier, getNextSimpleAttribute, getPreviousCollection, getPreviousGroup, getPreviousSimpleAttribute, getPrimaryIdentifier, getSchema, removeCollection, removeCollection, removeGroup, removeSchema, removeSimpleAttribute
 
Methods inherited from class com.dbmain.jidbm.DBMConcreteObject
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription, toString
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getPreviousUserObject, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, removeUserObject, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBMEntityType

public DBMEntityType(int id,
                     long sysid)
Creates a new instance of the DBMEntityType class representing the entity type identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a entity type.
sysid - the system identifier of a entity type.

DBMEntityType

public DBMEntityType(int id)
Creates a new instance of the DBMEntityType class representing the entity type identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a entity type.
Method Detail

deleteEntityType

public void deleteEntityType()
Deletes the entity type of the DB-MAIN repository represented by the current DBMEntityType instance.


createSubType

public DBMSubType createSubType(java.lang.String value,
                                DBMCluster cluster)
Creates a new instance of sub-type attached to the current entity type in the DB-MAIN repository.

Parameters:
value - the value of the field value.
cluster - the cluster linked to the created object.
Returns:
the DBMSubType instance representing the new sub-type.

createCluster

public DBMCluster createCluster(java.lang.String cluster_id,
                                short type,
                                java.lang.String criterion)
Creates a new instance of cluster attached to the current entity type in the DB-MAIN repository.

Parameters:
cluster_id - the value of the field cluster identifier.
type - the value of the field type.
criterion - the value of the field criterion.
Returns:
the DBMCluster instance representing the new cluster.

getFirstSubType

public DBMSubType getFirstSubType()
Returns the first sub-type of the current entity type in the DB-MAIN repository.

Returns:
the DBMSubType instance representing the first sub-type.

getLastSubType

public DBMSubType getLastSubType()
Returns the last sub-type of the current entity type in the DB-MAIN repository.

Returns:
the DBMSubType instance representing the last sub-type.

getNextSubType

public DBMSubType getNextSubType(DBMSubType cur)
Returns the sub-type (of the current entity type) that follows the sub-type cur in the DB-MAIN repository.

Parameters:
cur - the current sub-type.
Returns:
the DBMSubType instance representing the next sub-type.

getPreviousSubType

public DBMSubType getPreviousSubType(DBMSubType cur)
Returns the sub-type (of the current entity type) that precedes the sub-type cur in the DB-MAIN repository.

Parameters:
cur - the current sub-type.
Returns:
the DBMSubType instance representing the previous sub-type.

addFirstSubType

public void addFirstSubType(DBMSubType cur)
Adds a first sub-type (cur) to the current entity type in the DB-MAIN repository.

Parameters:
cur - the added sub-type.

addNextSubType

public void addNextSubType(DBMSubType cur,
                           DBMSubType prev)
Adds a sub-type (cur) following the sub-type (prev) to the current entity type in the DB-MAIN repository.

Parameters:
cur - the added sub-type.
prev - the sub-type after which the sub-type cur is inserted.

removeSubType

public void removeSubType()
Removes the list of sub-type attached to the current entity type in the DB-MAIN repository.


getFirstRole

public DBMRole getFirstRole()
Returns the first role of the current entity type in the DB-MAIN repository.

Returns:
the DBMRole instance representing the first role.

getLastRole

public DBMRole getLastRole()
Returns the last role of the current entity type in the DB-MAIN repository.

Returns:
the DBMRole instance representing the last role.

getNextRole

public DBMRole getNextRole(DBMRole cur)
Returns the role (of the current entity type) that follows the role cur in the DB-MAIN repository.

Parameters:
cur - the current role.
Returns:
the DBMRole instance representing the next role.

getPreviousRole

public DBMRole getPreviousRole(DBMRole cur)
Returns the role (of the current entity type) that precedes the role cur in the DB-MAIN repository.

Parameters:
cur - the current role.
Returns:
the DBMRole instance representing the previous role.

removeRole

public void removeRole()
Removes the list of role attached to the current entity type in the DB-MAIN repository.


removeRole

public void removeRole(DBMRole cur)
Removes a role attached to the current entity type in the DB-MAIN repository.

Parameters:
cur - the role to detach.

getFirstCluster

public DBMCluster getFirstCluster()
Returns the first cluster of the current entity type in the DB-MAIN repository.

Returns:
the DBMCluster instance representing the first cluster.

getLastCluster

public DBMCluster getLastCluster()
Returns the last cluster of the current entity type in the DB-MAIN repository.

Returns:
the DBMCluster instance representing the last cluster.

getNextCluster

public DBMCluster getNextCluster(DBMCluster cur)
Returns the cluster (of the current entity type) that follows the cluster cur in the DB-MAIN repository.

Parameters:
cur - the current cluster.
Returns:
the DBMCluster instance representing the next cluster.

getPreviousCluster

public DBMCluster getPreviousCluster(DBMCluster cur)
Returns the cluster (of the current entity type) that precedes the cluster cur in the DB-MAIN repository.

Parameters:
cur - the current cluster.
Returns:
the DBMCluster instance representing the previous cluster.

addFirstCluster

public void addFirstCluster(DBMCluster cur)
Adds a first cluster (cur) to the current entity type in the DB-MAIN repository.

Parameters:
cur - the added cluster.

addNextCluster

public void addNextCluster(DBMCluster cur,
                           DBMCluster prev)
Adds a cluster (cur) following the cluster (prev) to the current entity type in the DB-MAIN repository.

Parameters:
cur - the added cluster.
prev - the cluster after which the cluster cur is inserted.

removeCluster

public void removeCluster()
Removes the list of cluster attached to the current entity type in the DB-MAIN repository.


transformIntoRelationshipType

public DBMRelationshipType transformIntoRelationshipType(boolean show)
Transform the current entity type into a relationship type.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMRelationshipType instance representing the new object created by the transformation.

transformIntoAttribute

public DBMAttribute transformIntoAttribute(boolean show)
Transform the current entity type into an attribute.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMAttribute instance representing the new object created by the transformation.

splitMergeEntityType

public DBMEntityType splitMergeEntityType(boolean show)
Split/Merge the current entity type.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMEntityType instance representing the new object created by the transformation.

addTechnicalIdentifier

public DBMAttribute addTechnicalIdentifier(boolean show)
Add a technical identifier to the current entity type.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMAttribute instance representing the new identifier created by the transformation.

transformSubTypeIntoRelationshipType

public java.lang.Object[] transformSubTypeIntoRelationshipType(boolean show)
Transform sub-types of the current entity type into relationship types.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the array of DBMRelationshipType instance representing the new relationship types created by the transformation.

transformRelationshipTypeIntoSubType

public java.lang.Object[] transformRelationshipTypeIntoSubType(boolean show)
Transform relationship types of the current entity type into sub-types.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the array of DBMSubType instance representing the new sub-types created by the transformation.