|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.dbmain.jidbm.DBMGenericObject
com.dbmain.jidbm.DBMConcreteObject
com.dbmain.jidbm.DBMProduct
public class DBMProduct
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 java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBMProduct(int id,
long sysid)
id - the object identifier of a product.sysid - the system identifier of a product.public DBMProduct(int id)
id - the object identifier of a product.| Method Detail |
|---|
public java.lang.String getVersion()
public void setVersion(java.lang.String val)
val - the new String value of the field Version.public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date val)
val - the new Date value of the field CreationDate.public java.util.Date getLastUpdate()
public void setLastUpdate(java.util.Date val)
val - the new Date value of the field LastUpdate.public void deleteProduct()
public DBMConnection createConnection(java.lang.String type,
short seq_nbr,
DBMProduct to_product)
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.
public DBMConnection getFirstToConnection()
public DBMConnection getLastToConnection()
public DBMConnection getNextToConnection(DBMConnection cur)
cur - the current connection.
public DBMConnection getPreviousToConnection(DBMConnection cur)
cur - the current connection.
public void addFirstToConnection(DBMConnection cur)
cur - the added connection.
public void addNextToConnection(DBMConnection cur,
DBMConnection prev)
cur - the added connection.prev - the connection after which the connection cur is inserted.public void removeToConnection()
public DBMProductSet getFirstProductSet()
public DBMProductSet getLastProductSet()
public DBMProductSet getNextProductSet(DBMProductSet cur)
cur - the current product set.
public DBMProductSet getPreviousProductSet(DBMProductSet cur)
cur - the current product set.
public void removeProductSet()
public void removeProductSet(DBMProductSet cur)
cur - the product set to detach.public DBMConnection getFirstFromConnection()
public DBMConnection getLastFromConnection()
public DBMConnection getNextFromConnection(DBMConnection cur)
cur - the current connection.
public DBMConnection getPreviousFromConnection(DBMConnection cur)
cur - the current connection.
public void addFirstFromConnection(DBMConnection cur)
cur - the added connection.
public void addNextFromConnection(DBMConnection cur,
DBMConnection prev)
cur - the added connection.prev - the connection after which the connection cur is inserted.public void removeFromConnection()
public DBMProject getProject()
public void removeProject()
public java.lang.String toString()
toString in class DBMConcreteObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||