com.dbmain.jidbm
Class DBMState

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.DBMState

public class DBMState
extends DBMDataObject

The DBMState class represents state objects of the DB-MAIN repository.

A state can have several environments.


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
DBMState(int id)
          Creates a new instance of the DBMState class representing the state identified by id and the current project in DB-MAIN.
DBMState(int id, long sysid)
          Creates a new instance of the DBMState class representing the state identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstEnvironment(DBMEnvironment cur)
          Adds a first environment (cur) to the current state in the DB-MAIN repository.
 void addNextEnvironment(DBMEnvironment cur, DBMEnvironment prev)
          Adds a environment (cur) following the environment (prev) to the current state in the DB-MAIN repository.
 void deleteState()
          Deletes the state of the DB-MAIN repository represented by the current DBMState instance.
 DBMEnvironment getFirstEnvironment()
          Returns the first environment of the current state in the DB-MAIN repository.
 DBMGenericObject getGenericObject()
          Returns the generic object of the current state.
 DBMEnvironment getLastEnvironment()
          Returns the last environment of the current state in the DB-MAIN repository.
 DBMEnvironment getNextEnvironment(DBMEnvironment cur)
          Returns the environment (of the current state) that follows the environment cur in the DB-MAIN repository.
 DBMEnvironment getPreviousEnvironment(DBMEnvironment cur)
          Returns the environment (of the current state) that precedes the environment cur in the DB-MAIN repository.
 void removeEnvironment()
          Removes the list of environment attached to the current state in the DB-MAIN repository.
 void removeGenericObject()
          Removes the generic object attached to the current state in the DB-MAIN repository.
 
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

DBMState

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

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

DBMState

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

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

deleteState

public void deleteState()
Deletes the state of the DB-MAIN repository represented by the current DBMState instance.


getFirstEnvironment

public DBMEnvironment getFirstEnvironment()
Returns the first environment of the current state in the DB-MAIN repository.

Returns:
the DBMEnvironment instance representing the first environment.

getLastEnvironment

public DBMEnvironment getLastEnvironment()
Returns the last environment of the current state in the DB-MAIN repository.

Returns:
the DBMEnvironment instance representing the last environment.

getNextEnvironment

public DBMEnvironment getNextEnvironment(DBMEnvironment cur)
Returns the environment (of the current state) that follows the environment cur in the DB-MAIN repository.

Parameters:
cur - the current environment.
Returns:
the DBMEnvironment instance representing the next environment.

getPreviousEnvironment

public DBMEnvironment getPreviousEnvironment(DBMEnvironment cur)
Returns the environment (of the current state) that precedes the environment cur in the DB-MAIN repository.

Parameters:
cur - the current environment.
Returns:
the DBMEnvironment instance representing the previous environment.

addFirstEnvironment

public void addFirstEnvironment(DBMEnvironment cur)
Adds a first environment (cur) to the current state in the DB-MAIN repository.

Parameters:
cur - the added environment.

addNextEnvironment

public void addNextEnvironment(DBMEnvironment cur,
                               DBMEnvironment prev)
Adds a environment (cur) following the environment (prev) to the current state in the DB-MAIN repository.

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

removeEnvironment

public void removeEnvironment()
Removes the list of environment attached to the current state in the DB-MAIN repository.


getGenericObject

public DBMGenericObject getGenericObject()
Returns the generic object of the current state.

Returns:
the DBMGenericObject instance representing the generic object.

removeGenericObject

public void removeGenericObject()
Removes the generic object attached to the current state in the DB-MAIN repository.