com.dbmain.jidbm
Class DBMCluster

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMCluster

public class DBMCluster
extends DBMGenericObject

The DBMCluster class represents cluster objects of the DB-MAIN repository.

A cluster can have several sub-types.


Field Summary
static short DISJOINT_CLU
          Constant of field type: The collection of subtypes is declared disjoint.
static short TOTAL_CLU
          Constant of field type: The collection of subtypes is declared total.
 
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
DBMCluster(int id)
          Creates a new instance of the DBMCluster class representing the cluster identified by id and the current project in DB-MAIN.
DBMCluster(int id, long sysid)
          Creates a new instance of the DBMCluster class representing the cluster identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstSubType(DBMSubType cur)
          Adds a first sub-type (cur) to the current cluster in the DB-MAIN repository.
 void addNextSubType(DBMSubType cur, DBMSubType prev)
          Adds a sub-type (cur) following the sub-type (prev) to the current cluster in the DB-MAIN repository.
 void deleteCluster()
          Deletes the cluster of the DB-MAIN repository represented by the current DBMCluster instance.
 java.lang.String getClusterIdentifier()
          Returns the cluster identifier of the current cluster.
 java.lang.String getCriterion()
          Returns the criterion of the current cluster.
 DBMEntityType getEntityType()
          Returns the entity type of the current cluster.
 DBMSubType getFirstSubType()
          Returns the first sub-type of the current cluster in the DB-MAIN repository.
 DBMSubType getLastSubType()
          Returns the last sub-type of the current cluster in the DB-MAIN repository.
 DBMSubType getNextSubType(DBMSubType cur)
          Returns the sub-type (of the current cluster) that follows the sub-type cur in the DB-MAIN repository.
 DBMSubType getPreviousSubType(DBMSubType cur)
          Returns the sub-type (of the current cluster) that precedes the sub-type cur in the DB-MAIN repository.
 short getType()
          Returns the type of the current cluster.
 java.lang.String getTypeName()
          Returns the type constant name of the current cluster.
 boolean isTypeConstant(short cst)
          Returns the constant cst value in the type of the current cluster.
 void removeEntityType()
          Removes the entity type attached to the current cluster in the DB-MAIN repository.
 void removeSubType()
          Removes the list of sub-type attached to the current cluster in the DB-MAIN repository.
 void setClusterIdentifier(java.lang.String val)
          Updates the value of cluster identifier in the current cluster in the DB-MAIN repository.
 void setCriterion(java.lang.String val)
          Updates the value of criterion in the current cluster in the DB-MAIN repository.
 void setType(short val)
          Updates the value of type in the current cluster in the DB-MAIN repository.
 void setTypeConstant(short cst, boolean val)
          Updates the constant cst value of type in the currentcluster in the DB-MAIN repository.
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOTAL_CLU

public static final short TOTAL_CLU
Constant of field type: The collection of subtypes is declared total.

See Also:
Constant Field Values

DISJOINT_CLU

public static final short DISJOINT_CLU
Constant of field type: The collection of subtypes is declared disjoint.

See Also:
Constant Field Values
Constructor Detail

DBMCluster

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

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

DBMCluster

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

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

getClusterIdentifier

public java.lang.String getClusterIdentifier()
Returns the cluster identifier of the current cluster.

Returns:
the String value of the field clusterIdentifier.

setClusterIdentifier

public void setClusterIdentifier(java.lang.String val)
Updates the value of cluster identifier in the current cluster in the DB-MAIN repository.

Parameters:
val - the new String value of the field ClusterIdentifier.

getType

public short getType()
Returns the type of the current cluster.

Returns:
the short value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current cluster.

Returns:
the string representation of the field type.

isTypeConstant

public boolean isTypeConstant(short cst)
Returns the constant cst value in the type of the current cluster.

Parameters:
cst - a constant of the field type.
Returns:
the boolean value of constant cst in the field type.

setType

public void setType(short val)
Updates the value of type in the current cluster in the DB-MAIN repository.

Parameters:
val - the new short value of the field Type.

setTypeConstant

public void setTypeConstant(short cst,
                            boolean val)
Updates the constant cst value of type in the currentcluster in the DB-MAIN repository.

Parameters:
cst - a constant of the field Type.
val - the new boolean value of the constant cst in the field Type.

getCriterion

public java.lang.String getCriterion()
Returns the criterion of the current cluster.

Returns:
the String value of the field criterion.

setCriterion

public void setCriterion(java.lang.String val)
Updates the value of criterion in the current cluster in the DB-MAIN repository.

Parameters:
val - the new String value of the field Criterion.

deleteCluster

public void deleteCluster()
Deletes the cluster of the DB-MAIN repository represented by the current DBMCluster instance.


getFirstSubType

public DBMSubType getFirstSubType()
Returns the first sub-type of the current cluster 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 cluster 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 cluster) 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 cluster) 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 cluster 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 cluster 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 cluster in the DB-MAIN repository.


getEntityType

public DBMEntityType getEntityType()
Returns the entity type of the current cluster.

Returns:
the DBMEntityType instance representing the entity type.

removeEntityType

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