com.dbmain.jidbm
Class DBMCollection

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMCollection

public class DBMCollection
extends DBMConcreteObject

The DBMCollection class represents collection objects of the DB-MAIN repository.

A collection can have several data objects. The data object instances fall into 8 classes: consumption, state, resource, processing unit, relationship type, entity type, simple attribute and compound attribute.


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
DBMCollection(int id)
          Creates a new instance of the DBMCollection class representing the collection identified by id and the current project in DB-MAIN.
DBMCollection(int id, long sysid)
          Creates a new instance of the DBMCollection class representing the collection identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstDataObject(DBMDataObject cur)
          Adds a first data object (cur) to the current collection in the DB-MAIN repository.
 void addNextDataObject(DBMDataObject cur, DBMDataObject prev)
          Adds a data object (cur) following the data object (prev) to the current collection in the DB-MAIN repository.
 void deleteCollection()
          Deletes the collection of the DB-MAIN repository represented by the current DBMCollection instance.
 DBMDataObject getFirstDataObject()
          Returns the first data object of the current collection in the DB-MAIN repository.
 DBMCompoundAttribute getFirstDataObjectCompoundAttribute()
          Returns the first compound attribute data object of the current collection in the DB-MAIN repository.
 DBMConsumption getFirstDataObjectConsumption()
          Returns the first consumption data object of the current collection in the DB-MAIN repository.
 DBMEntityType getFirstDataObjectEntityType()
          Returns the first entity type data object of the current collection in the DB-MAIN repository.
 DBMProcessingUnit getFirstDataObjectProcessingUnit()
          Returns the first processing unit data object of the current collection in the DB-MAIN repository.
 DBMRelationshipType getFirstDataObjectRelationshipType()
          Returns the first relationship type data object of the current collection in the DB-MAIN repository.
 DBMResource getFirstDataObjectResource()
          Returns the first resource data object of the current collection in the DB-MAIN repository.
 DBMSimpleAttribute getFirstDataObjectSimpleAttribute()
          Returns the first simple attribute data object of the current collection in the DB-MAIN repository.
 DBMState getFirstDataObjectState()
          Returns the first state data object of the current collection in the DB-MAIN repository.
 DBMDataObject getLastDataObject()
          Returns the last data object of the current collection in the DB-MAIN repository.
 DBMCompoundAttribute getLastDataObjectCompoundAttribute()
          Returns the last compound attribute data object of the current collection in the DB-MAIN repository.
 DBMConsumption getLastDataObjectConsumption()
          Returns the last consumption data object of the current collection in the DB-MAIN repository.
 DBMEntityType getLastDataObjectEntityType()
          Returns the last entity type data object of the current collection in the DB-MAIN repository.
 DBMProcessingUnit getLastDataObjectProcessingUnit()
          Returns the last processing unit data object of the current collection in the DB-MAIN repository.
 DBMRelationshipType getLastDataObjectRelationshipType()
          Returns the last relationship type data object of the current collection in the DB-MAIN repository.
 DBMResource getLastDataObjectResource()
          Returns the last resource data object of the current collection in the DB-MAIN repository.
 DBMSimpleAttribute getLastDataObjectSimpleAttribute()
          Returns the last simple attribute data object of the current collection in the DB-MAIN repository.
 DBMState getLastDataObjectState()
          Returns the last state data object of the current collection in the DB-MAIN repository.
 DBMDataObject getNextDataObject(DBMDataObject cur)
          Returns the data object (of the current collection) that follows the data object cur in the DB-MAIN repository.
 DBMCompoundAttribute getNextDataObjectCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute data object (of the current collection) that follows the compound attribute cur in the DB-MAIN repository.
 DBMConsumption getNextDataObjectConsumption(DBMConsumption cur)
          Returns the consumption data object (of the current collection) that follows the consumption cur in the DB-MAIN repository.
 DBMEntityType getNextDataObjectEntityType(DBMEntityType cur)
          Returns the entity type data object (of the current collection) that follows the entity type cur in the DB-MAIN repository.
 DBMProcessingUnit getNextDataObjectProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit data object (of the current collection) that follows the processing unit cur in the DB-MAIN repository.
 DBMRelationshipType getNextDataObjectRelationshipType(DBMRelationshipType cur)
          Returns the relationship type data object (of the current collection) that follows the relationship type cur in the DB-MAIN repository.
 DBMResource getNextDataObjectResource(DBMResource cur)
          Returns the resource data object (of the current collection) that follows the resource cur in the DB-MAIN repository.
 DBMSimpleAttribute getNextDataObjectSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute data object (of the current collection) that follows the simple attribute cur in the DB-MAIN repository.
 DBMState getNextDataObjectState(DBMState cur)
          Returns the state data object (of the current collection) that follows the state cur in the DB-MAIN repository.
 DBMDataObject getPreviousDataObject(DBMDataObject cur)
          Returns the data object (of the current collection) that precedes the data object cur in the DB-MAIN repository.
 DBMCompoundAttribute getPreviousDataObjectCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute data object (of the current collection) that precedes the compound attribute cur in the DB-MAIN repository.
 DBMConsumption getPreviousDataObjectConsumption(DBMConsumption cur)
          Returns the consumption data object (of the current collection) that precedes the consumption cur in the DB-MAIN repository.
 DBMEntityType getPreviousDataObjectEntityType(DBMEntityType cur)
          Returns the entity type data object (of the current collection) that precedes the entity type cur in the DB-MAIN repository.
 DBMProcessingUnit getPreviousDataObjectProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit data object (of the current collection) that precedes the processing unit cur in the DB-MAIN repository.
 DBMRelationshipType getPreviousDataObjectRelationshipType(DBMRelationshipType cur)
          Returns the relationship type data object (of the current collection) that precedes the relationship type cur in the DB-MAIN repository.
 DBMResource getPreviousDataObjectResource(DBMResource cur)
          Returns the resource data object (of the current collection) that precedes the resource cur in the DB-MAIN repository.
 DBMSimpleAttribute getPreviousDataObjectSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute data object (of the current collection) that precedes the simple attribute cur in the DB-MAIN repository.
 DBMState getPreviousDataObjectState(DBMState cur)
          Returns the state data object (of the current collection) that precedes the state cur in the DB-MAIN repository.
 DBMSchema getSchema()
          Returns the schema of the current collection.
 void removeDataObject()
          Removes the list of data object attached to the current collection in the DB-MAIN repository.
 void removeSchema()
          Removes the schema attached to the current collection in the DB-MAIN repository.
 
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

DBMCollection

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

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

DBMCollection

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

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

deleteCollection

public void deleteCollection()
Deletes the collection of the DB-MAIN repository represented by the current DBMCollection instance.


getFirstDataObject

public DBMDataObject getFirstDataObject()
Returns the first data object of the current collection in the DB-MAIN repository.

Returns:
the DBMDataObject instance representing the first data object.

getLastDataObject

public DBMDataObject getLastDataObject()
Returns the last data object of the current collection in the DB-MAIN repository.

Returns:
the DBMDataObject instance representing the last data object.

getNextDataObject

public DBMDataObject getNextDataObject(DBMDataObject cur)
Returns the data object (of the current collection) that follows the data object cur in the DB-MAIN repository.

Parameters:
cur - the current data object.
Returns:
the DBMDataObject instance representing the next data object.

getPreviousDataObject

public DBMDataObject getPreviousDataObject(DBMDataObject cur)
Returns the data object (of the current collection) that precedes the data object cur in the DB-MAIN repository.

Parameters:
cur - the current data object.
Returns:
the DBMDataObject instance representing the previous data object.

getFirstDataObjectConsumption

public DBMConsumption getFirstDataObjectConsumption()
Returns the first consumption data object of the current collection in the DB-MAIN repository.

Returns:
the DBMConsumption instance representing the first consumption.

getLastDataObjectConsumption

public DBMConsumption getLastDataObjectConsumption()
Returns the last consumption data object of the current collection in the DB-MAIN repository.

Returns:
the DBMConsumption instance representing the last consumption.

getNextDataObjectConsumption

public DBMConsumption getNextDataObjectConsumption(DBMConsumption cur)
Returns the consumption data object (of the current collection) that follows the consumption cur in the DB-MAIN repository.

Parameters:
cur - the current consumption.
Returns:
the DBMConsumption instance representing the next consumption.

getPreviousDataObjectConsumption

public DBMConsumption getPreviousDataObjectConsumption(DBMConsumption cur)
Returns the consumption data object (of the current collection) that precedes the consumption cur in the DB-MAIN repository.

Parameters:
cur - the current consumption.
Returns:
the DBMConsumption instance representing the previous consumption.

getFirstDataObjectState

public DBMState getFirstDataObjectState()
Returns the first state data object of the current collection in the DB-MAIN repository.

Returns:
the DBMState instance representing the first state.

getLastDataObjectState

public DBMState getLastDataObjectState()
Returns the last state data object of the current collection in the DB-MAIN repository.

Returns:
the DBMState instance representing the last state.

getNextDataObjectState

public DBMState getNextDataObjectState(DBMState cur)
Returns the state data object (of the current collection) that follows the state cur in the DB-MAIN repository.

Parameters:
cur - the current state.
Returns:
the DBMState instance representing the next state.

getPreviousDataObjectState

public DBMState getPreviousDataObjectState(DBMState cur)
Returns the state data object (of the current collection) that precedes the state cur in the DB-MAIN repository.

Parameters:
cur - the current state.
Returns:
the DBMState instance representing the previous state.

getFirstDataObjectResource

public DBMResource getFirstDataObjectResource()
Returns the first resource data object of the current collection in the DB-MAIN repository.

Returns:
the DBMResource instance representing the first resource.

getLastDataObjectResource

public DBMResource getLastDataObjectResource()
Returns the last resource data object of the current collection in the DB-MAIN repository.

Returns:
the DBMResource instance representing the last resource.

getNextDataObjectResource

public DBMResource getNextDataObjectResource(DBMResource cur)
Returns the resource data object (of the current collection) that follows the resource cur in the DB-MAIN repository.

Parameters:
cur - the current resource.
Returns:
the DBMResource instance representing the next resource.

getPreviousDataObjectResource

public DBMResource getPreviousDataObjectResource(DBMResource cur)
Returns the resource data object (of the current collection) that precedes the resource cur in the DB-MAIN repository.

Parameters:
cur - the current resource.
Returns:
the DBMResource instance representing the previous resource.

getFirstDataObjectProcessingUnit

public DBMProcessingUnit getFirstDataObjectProcessingUnit()
Returns the first processing unit data object of the current collection in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the first processing unit.

getLastDataObjectProcessingUnit

public DBMProcessingUnit getLastDataObjectProcessingUnit()
Returns the last processing unit data object of the current collection in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the last processing unit.

getNextDataObjectProcessingUnit

public DBMProcessingUnit getNextDataObjectProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit data object (of the current collection) that follows the processing unit cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the next processing unit.

getPreviousDataObjectProcessingUnit

public DBMProcessingUnit getPreviousDataObjectProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit data object (of the current collection) that precedes the processing unit cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the previous processing unit.

getFirstDataObjectRelationshipType

public DBMRelationshipType getFirstDataObjectRelationshipType()
Returns the first relationship type data object of the current collection in the DB-MAIN repository.

Returns:
the DBMRelationshipType instance representing the first relationship type.

getLastDataObjectRelationshipType

public DBMRelationshipType getLastDataObjectRelationshipType()
Returns the last relationship type data object of the current collection in the DB-MAIN repository.

Returns:
the DBMRelationshipType instance representing the last relationship type.

getNextDataObjectRelationshipType

public DBMRelationshipType getNextDataObjectRelationshipType(DBMRelationshipType cur)
Returns the relationship type data object (of the current collection) that follows the relationship type cur in the DB-MAIN repository.

Parameters:
cur - the current relationship type.
Returns:
the DBMRelationshipType instance representing the next relationship type.

getPreviousDataObjectRelationshipType

public DBMRelationshipType getPreviousDataObjectRelationshipType(DBMRelationshipType cur)
Returns the relationship type data object (of the current collection) that precedes the relationship type cur in the DB-MAIN repository.

Parameters:
cur - the current relationship type.
Returns:
the DBMRelationshipType instance representing the previous relationship type.

getFirstDataObjectEntityType

public DBMEntityType getFirstDataObjectEntityType()
Returns the first entity type data object of the current collection in the DB-MAIN repository.

Returns:
the DBMEntityType instance representing the first entity type.

getLastDataObjectEntityType

public DBMEntityType getLastDataObjectEntityType()
Returns the last entity type data object of the current collection in the DB-MAIN repository.

Returns:
the DBMEntityType instance representing the last entity type.

getNextDataObjectEntityType

public DBMEntityType getNextDataObjectEntityType(DBMEntityType cur)
Returns the entity type data object (of the current collection) that follows the entity type cur in the DB-MAIN repository.

Parameters:
cur - the current entity type.
Returns:
the DBMEntityType instance representing the next entity type.

getPreviousDataObjectEntityType

public DBMEntityType getPreviousDataObjectEntityType(DBMEntityType cur)
Returns the entity type data object (of the current collection) that precedes the entity type cur in the DB-MAIN repository.

Parameters:
cur - the current entity type.
Returns:
the DBMEntityType instance representing the previous entity type.

getFirstDataObjectSimpleAttribute

public DBMSimpleAttribute getFirstDataObjectSimpleAttribute()
Returns the first simple attribute data object of the current collection in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the first simple attribute.

getLastDataObjectSimpleAttribute

public DBMSimpleAttribute getLastDataObjectSimpleAttribute()
Returns the last simple attribute data object of the current collection in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the last simple attribute.

getNextDataObjectSimpleAttribute

public DBMSimpleAttribute getNextDataObjectSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute data object (of the current collection) that follows the simple attribute cur in the DB-MAIN repository.

Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the next simple attribute.

getPreviousDataObjectSimpleAttribute

public DBMSimpleAttribute getPreviousDataObjectSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute data object (of the current collection) that precedes the simple attribute cur in the DB-MAIN repository.

Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the previous simple attribute.

getFirstDataObjectCompoundAttribute

public DBMCompoundAttribute getFirstDataObjectCompoundAttribute()
Returns the first compound attribute data object of the current collection in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the first compound attribute.

getLastDataObjectCompoundAttribute

public DBMCompoundAttribute getLastDataObjectCompoundAttribute()
Returns the last compound attribute data object of the current collection in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the last compound attribute.

getNextDataObjectCompoundAttribute

public DBMCompoundAttribute getNextDataObjectCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute data object (of the current collection) that follows the compound attribute cur in the DB-MAIN repository.

Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the next compound attribute.

getPreviousDataObjectCompoundAttribute

public DBMCompoundAttribute getPreviousDataObjectCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute data object (of the current collection) that precedes the compound attribute cur in the DB-MAIN repository.

Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the previous compound attribute.

addFirstDataObject

public void addFirstDataObject(DBMDataObject cur)
Adds a first data object (cur) to the current collection in the DB-MAIN repository.

Parameters:
cur - the added data object.

addNextDataObject

public void addNextDataObject(DBMDataObject cur,
                              DBMDataObject prev)
Adds a data object (cur) following the data object (prev) to the current collection in the DB-MAIN repository.

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

removeDataObject

public void removeDataObject()
Removes the list of data object attached to the current collection in the DB-MAIN repository.


getSchema

public DBMSchema getSchema()
Returns the schema of the current collection.

Returns:
the DBMSchema instance representing the schema.

removeSchema

public void removeSchema()
Removes the schema attached to the current collection in the DB-MAIN repository.