com.dbmain.jidbm
Class DBMProduct

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMProduct
Direct Known Subclasses:
DBMProductSet, DBMSchema, DBMText

public class DBMProduct
extends DBMConcreteObject

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

A product can have several connections, product sets and connections.


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
DBMProduct(int id)
          Creates a new instance of the DBMProduct class representing the product identified by id and the current project in DB-MAIN.
DBMProduct(int id, long sysid)
          Creates a new instance of the DBMProduct class representing the product identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstFromConnection(DBMConnection cur)
          Adds a first connection (cur) to the current product in the DB-MAIN repository.
 void addFirstToConnection(DBMConnection cur)
          Adds a first connection (cur) to the current product in the DB-MAIN repository.
 void addNextFromConnection(DBMConnection cur, DBMConnection prev)
          Adds a connection (cur) following the connection (prev) to the current product in the DB-MAIN repository.
 void addNextToConnection(DBMConnection cur, DBMConnection prev)
          Adds a connection (cur) following the connection (prev) to the current product in the DB-MAIN repository.
 DBMConnection createConnection(java.lang.String type, short seq_nbr, DBMProduct to_product)
          Creates a new instance of connection attached to the current product in the DB-MAIN repository.
 void deleteProduct()
          Deletes the product of the DB-MAIN repository represented by the current DBMProduct instance.
 java.util.Date getCreationDate()
          Returns the creation date of the current product.
 DBMConnection getFirstFromConnection()
          Returns the first connection of the current product in the DB-MAIN repository.
 DBMProductSet getFirstProductSet()
          Returns the first product set of the current product in the DB-MAIN repository.
 DBMConnection getFirstToConnection()
          Returns the first connection of the current product in the DB-MAIN repository.
 DBMConnection getLastFromConnection()
          Returns the last connection of the current product in the DB-MAIN repository.
 DBMProductSet getLastProductSet()
          Returns the last product set of the current product in the DB-MAIN repository.
 DBMConnection getLastToConnection()
          Returns the last connection of the current product in the DB-MAIN repository.
 java.util.Date getLastUpdate()
          Returns the last update of the current product.
 DBMConnection getNextFromConnection(DBMConnection cur)
          Returns the connection (of the current product) that follows the connection cur in the DB-MAIN repository.
 DBMProductSet getNextProductSet(DBMProductSet cur)
          Returns the product set (of the current product) that follows the product set cur in the DB-MAIN repository.
 DBMConnection getNextToConnection(DBMConnection cur)
          Returns the connection (of the current product) that follows the connection cur in the DB-MAIN repository.
 DBMConnection getPreviousFromConnection(DBMConnection cur)
          Returns the connection (of the current product) that precedes the connection cur in the DB-MAIN repository.
 DBMProductSet getPreviousProductSet(DBMProductSet cur)
          Returns the product set (of the current product) that precedes the product set cur in the DB-MAIN repository.
 DBMConnection getPreviousToConnection(DBMConnection cur)
          Returns the connection (of the current product) that precedes the connection cur in the DB-MAIN repository.
 DBMProject getProject()
          Returns the project of the current product.
 java.lang.String getVersion()
          Returns the version of the current product.
 void removeFromConnection()
          Removes the list of connection attached to the current product in the DB-MAIN repository.
 void removeProductSet()
          Removes the list of product set attached to the current product in the DB-MAIN repository.
 void removeProductSet(DBMProductSet cur)
          Removes a product set attached to the current product in the DB-MAIN repository.
 void removeProject()
          Removes the project attached to the current product in the DB-MAIN repository.
 void removeToConnection()
          Removes the list of connection attached to the current product in the DB-MAIN repository.
 void setCreationDate(java.util.Date val)
          Updates the value of creation date in the current product in the DB-MAIN repository.
 void setLastUpdate(java.util.Date val)
          Updates the value of last update in the current product in the DB-MAIN repository.
 void setVersion(java.lang.String val)
          Updates the value of version in the current product in the DB-MAIN repository.
 java.lang.String toString()
          Returns the string representation of a product.
 
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

DBMProduct

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

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

DBMProduct

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

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

getVersion

public java.lang.String getVersion()
Returns the version of the current product.

Returns:
the String value of the field version.

setVersion

public void setVersion(java.lang.String val)
Updates the value of version in the current product in the DB-MAIN repository.

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

getCreationDate

public java.util.Date getCreationDate()
Returns the creation date of the current product.

Returns:
the Date value of the field creationDate.

setCreationDate

public void setCreationDate(java.util.Date val)
Updates the value of creation date in the current product in the DB-MAIN repository.

Parameters:
val - the new Date value of the field CreationDate.

getLastUpdate

public java.util.Date getLastUpdate()
Returns the last update of the current product.

Returns:
the Date value of the field lastUpdate.

setLastUpdate

public void setLastUpdate(java.util.Date val)
Updates the value of last update in the current product in the DB-MAIN repository.

Parameters:
val - the new Date value of the field LastUpdate.

deleteProduct

public void deleteProduct()
Deletes the product of the DB-MAIN repository represented by the current DBMProduct instance.


createConnection

public DBMConnection createConnection(java.lang.String type,
                                      short seq_nbr,
                                      DBMProduct to_product)
Creates a new instance of connection attached to the current product in the DB-MAIN repository.

Parameters:
type - the value of the field type.
seq_nbr - the value of the field sequence number.
to_product - the product linked to the created object.
Returns:
the DBMConnection instance representing the new connection.

getFirstToConnection

public DBMConnection getFirstToConnection()
Returns the first connection of the current product in the DB-MAIN repository.

Returns:
the DBMConnection instance representing the first connection.

getLastToConnection

public DBMConnection getLastToConnection()
Returns the last connection of the current product in the DB-MAIN repository.

Returns:
the DBMConnection instance representing the last connection.

getNextToConnection

public DBMConnection getNextToConnection(DBMConnection cur)
Returns the connection (of the current product) that follows the connection cur in the DB-MAIN repository.

Parameters:
cur - the current connection.
Returns:
the DBMConnection instance representing the next connection.

getPreviousToConnection

public DBMConnection getPreviousToConnection(DBMConnection cur)
Returns the connection (of the current product) that precedes the connection cur in the DB-MAIN repository.

Parameters:
cur - the current connection.
Returns:
the DBMConnection instance representing the previous connection.

addFirstToConnection

public void addFirstToConnection(DBMConnection cur)
Adds a first connection (cur) to the current product in the DB-MAIN repository.

Parameters:
cur - the added connection.

addNextToConnection

public void addNextToConnection(DBMConnection cur,
                                DBMConnection prev)
Adds a connection (cur) following the connection (prev) to the current product in the DB-MAIN repository.

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

removeToConnection

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


getFirstProductSet

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

Returns:
the DBMProductSet instance representing the first product set.

getLastProductSet

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

Returns:
the DBMProductSet instance representing the last product set.

getNextProductSet

public DBMProductSet getNextProductSet(DBMProductSet cur)
Returns the product set (of the current product) 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.

getPreviousProductSet

public DBMProductSet getPreviousProductSet(DBMProductSet cur)
Returns the product set (of the current product) 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.

removeProductSet

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


removeProductSet

public void removeProductSet(DBMProductSet cur)
Removes a product set attached to the current product in the DB-MAIN repository.

Parameters:
cur - the product set to detach.

getFirstFromConnection

public DBMConnection getFirstFromConnection()
Returns the first connection of the current product in the DB-MAIN repository.

Returns:
the DBMConnection instance representing the first connection.

getLastFromConnection

public DBMConnection getLastFromConnection()
Returns the last connection of the current product in the DB-MAIN repository.

Returns:
the DBMConnection instance representing the last connection.

getNextFromConnection

public DBMConnection getNextFromConnection(DBMConnection cur)
Returns the connection (of the current product) that follows the connection cur in the DB-MAIN repository.

Parameters:
cur - the current connection.
Returns:
the DBMConnection instance representing the next connection.

getPreviousFromConnection

public DBMConnection getPreviousFromConnection(DBMConnection cur)
Returns the connection (of the current product) that precedes the connection cur in the DB-MAIN repository.

Parameters:
cur - the current connection.
Returns:
the DBMConnection instance representing the previous connection.

addFirstFromConnection

public void addFirstFromConnection(DBMConnection cur)
Adds a first connection (cur) to the current product in the DB-MAIN repository.

Parameters:
cur - the added connection.

addNextFromConnection

public void addNextFromConnection(DBMConnection cur,
                                  DBMConnection prev)
Adds a connection (cur) following the connection (prev) to the current product in the DB-MAIN repository.

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

removeFromConnection

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


getProject

public DBMProject getProject()
Returns the project of the current product.

Returns:
the DBMProject instance representing the project.

removeProject

public void removeProject()
Removes the project attached to the current product in the DB-MAIN repository.


toString

public java.lang.String toString()
Returns the string representation of a product. For class DBMProduct, the string consists of the name and version.

Overrides:
toString in class DBMConcreteObject
Returns:
A string representation of the product.