com.dbmain.jidbm
Class DBMProductSet

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMProduct
              extended by com.dbmain.jidbm.DBMProductSet

public class DBMProductSet
extends DBMProduct

The DBMProductSet class represents product set objects of the DB-MAIN repository.

A product set can have several products. The product instances fall into 3 classes: product set, schema and text.


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
DBMProductSet(int id)
          Creates a new instance of the DBMProductSet class representing the product set identified by id and the current project in DB-MAIN.
DBMProductSet(int id, long sysid)
          Creates a new instance of the DBMProductSet class representing the product set identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstProduct(DBMProduct cur)
          Adds a first product (cur) to the current product set in the DB-MAIN repository.
 void addNextProduct(DBMProduct cur, DBMProduct prev)
          Adds a product (cur) following the product (prev) to the current product set in the DB-MAIN repository.
 void deleteProductSet()
          Deletes the product set of the DB-MAIN repository represented by the current DBMProductSet instance.
 DBMProduct getFirstProduct()
          Returns the first product of the current product set in the DB-MAIN repository.
 DBMProductSet getFirstProductProductSet()
          Returns the first product set product of the current product set in the DB-MAIN repository.
 DBMSchema getFirstProductSchema()
          Returns the first schema product of the current product set in the DB-MAIN repository.
 DBMText getFirstProductText()
          Returns the first text product of the current product set in the DB-MAIN repository.
 DBMProduct getLastProduct()
          Returns the last product of the current product set in the DB-MAIN repository.
 DBMProductSet getLastProductProductSet()
          Returns the last product set product of the current product set in the DB-MAIN repository.
 DBMSchema getLastProductSchema()
          Returns the last schema product of the current product set in the DB-MAIN repository.
 DBMText getLastProductText()
          Returns the last text product of the current product set in the DB-MAIN repository.
 DBMProduct getNextProduct(DBMProduct cur)
          Returns the product (of the current product set) that follows the product cur in the DB-MAIN repository.
 DBMProductSet getNextProductProductSet(DBMProductSet cur)
          Returns the product set product (of the current product set) that follows the product set cur in the DB-MAIN repository.
 DBMSchema getNextProductSchema(DBMSchema cur)
          Returns the schema product (of the current product set) that follows the schema cur in the DB-MAIN repository.
 DBMText getNextProductText(DBMText cur)
          Returns the text product (of the current product set) that follows the text cur in the DB-MAIN repository.
 DBMProduct getPreviousProduct(DBMProduct cur)
          Returns the product (of the current product set) that precedes the product cur in the DB-MAIN repository.
 DBMProductSet getPreviousProductProductSet(DBMProductSet cur)
          Returns the product set product (of the current product set) that precedes the product set cur in the DB-MAIN repository.
 DBMSchema getPreviousProductSchema(DBMSchema cur)
          Returns the schema product (of the current product set) that precedes the schema cur in the DB-MAIN repository.
 DBMText getPreviousProductText(DBMText cur)
          Returns the text product (of the current product set) that precedes the text cur in the DB-MAIN repository.
 void removeProduct()
          Removes the list of product attached to the current product set in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMProduct
addFirstFromConnection, addFirstToConnection, addNextFromConnection, addNextToConnection, createConnection, deleteProduct, getCreationDate, getFirstFromConnection, getFirstProductSet, getFirstToConnection, getLastFromConnection, getLastProductSet, getLastToConnection, getLastUpdate, getNextFromConnection, getNextProductSet, getNextToConnection, getPreviousFromConnection, getPreviousProductSet, getPreviousToConnection, getProject, getVersion, removeFromConnection, removeProductSet, removeProductSet, removeProject, removeToConnection, setCreationDate, setLastUpdate, setVersion, toString
 
Methods inherited from class com.dbmain.jidbm.DBMConcreteObject
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription
 
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

DBMProductSet

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

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

DBMProductSet

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

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

deleteProductSet

public void deleteProductSet()
Deletes the product set of the DB-MAIN repository represented by the current DBMProductSet instance.


getFirstProduct

public DBMProduct getFirstProduct()
Returns the first product of the current product set in the DB-MAIN repository.

Returns:
the DBMProduct instance representing the first product.

getLastProduct

public DBMProduct getLastProduct()
Returns the last product of the current product set in the DB-MAIN repository.

Returns:
the DBMProduct instance representing the last product.

getNextProduct

public DBMProduct getNextProduct(DBMProduct cur)
Returns the product (of the current product set) that follows the product cur in the DB-MAIN repository.

Parameters:
cur - the current product.
Returns:
the DBMProduct instance representing the next product.

getPreviousProduct

public DBMProduct getPreviousProduct(DBMProduct cur)
Returns the product (of the current product set) that precedes the product cur in the DB-MAIN repository.

Parameters:
cur - the current product.
Returns:
the DBMProduct instance representing the previous product.

getFirstProductProductSet

public DBMProductSet getFirstProductProductSet()
Returns the first product set product of the current product set in the DB-MAIN repository.

Returns:
the DBMProductSet instance representing the first product set.

getLastProductProductSet

public DBMProductSet getLastProductProductSet()
Returns the last product set product of the current product set in the DB-MAIN repository.

Returns:
the DBMProductSet instance representing the last product set.

getNextProductProductSet

public DBMProductSet getNextProductProductSet(DBMProductSet cur)
Returns the product set product (of the current product set) that follows the product set cur in the DB-MAIN repository.

Parameters:
cur - the current product set.
Returns:
the DBMProductSet instance representing the next product set.

getPreviousProductProductSet

public DBMProductSet getPreviousProductProductSet(DBMProductSet cur)
Returns the product set product (of the current product set) that precedes the product set cur in the DB-MAIN repository.

Parameters:
cur - the current product set.
Returns:
the DBMProductSet instance representing the previous product set.

getFirstProductSchema

public DBMSchema getFirstProductSchema()
Returns the first schema product of the current product set in the DB-MAIN repository.

Returns:
the DBMSchema instance representing the first schema.

getLastProductSchema

public DBMSchema getLastProductSchema()
Returns the last schema product of the current product set in the DB-MAIN repository.

Returns:
the DBMSchema instance representing the last schema.

getNextProductSchema

public DBMSchema getNextProductSchema(DBMSchema cur)
Returns the schema product (of the current product set) that follows the schema cur in the DB-MAIN repository.

Parameters:
cur - the current schema.
Returns:
the DBMSchema instance representing the next schema.

getPreviousProductSchema

public DBMSchema getPreviousProductSchema(DBMSchema cur)
Returns the schema product (of the current product set) that precedes the schema cur in the DB-MAIN repository.

Parameters:
cur - the current schema.
Returns:
the DBMSchema instance representing the previous schema.

getFirstProductText

public DBMText getFirstProductText()
Returns the first text product of the current product set in the DB-MAIN repository.

Returns:
the DBMText instance representing the first text.

getLastProductText

public DBMText getLastProductText()
Returns the last text product of the current product set in the DB-MAIN repository.

Returns:
the DBMText instance representing the last text.

getNextProductText

public DBMText getNextProductText(DBMText cur)
Returns the text product (of the current product set) that follows the text cur in the DB-MAIN repository.

Parameters:
cur - the current text.
Returns:
the DBMText instance representing the next text.

getPreviousProductText

public DBMText getPreviousProductText(DBMText cur)
Returns the text product (of the current product set) that precedes the text cur in the DB-MAIN repository.

Parameters:
cur - the current text.
Returns:
the DBMText instance representing the previous text.

addFirstProduct

public void addFirstProduct(DBMProduct cur)
Adds a first product (cur) to the current product set in the DB-MAIN repository.

Parameters:
cur - the added product.

addNextProduct

public void addNextProduct(DBMProduct cur,
                           DBMProduct prev)
Adds a product (cur) following the product (prev) to the current product set in the DB-MAIN repository.

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

removeProduct

public void removeProduct()
Removes the list of product attached to the current product set in the DB-MAIN repository.