|
||||||||
| 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.DBMDataObject
public class DBMDataObject
The DBMDataObject class represents data object objects of the DB-MAIN repository.
A data object can have several groups, simple attributes and collections.
| 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 | |
|---|---|
DBMDataObject(int id)
Creates a new instance of the DBMDataObject class representing the data object identified by id and the current project in DB-MAIN. |
|
DBMDataObject(int id,
long sysid)
Creates a new instance of the DBMDataObject class representing the data object identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstGroup(DBMGroup cur)
Adds a first group (cur) to the current data object in the DB-MAIN repository. |
void |
addFirstSimpleAttribute(DBMSimpleAttribute cur)
Adds a first simple attribute (cur) to the current data object in the DB-MAIN repository. |
void |
addNextGroup(DBMGroup cur,
DBMGroup prev)
Adds a group (cur) following the group (prev) to the current data object in the DB-MAIN repository. |
void |
addNextSimpleAttribute(DBMSimpleAttribute cur,
DBMSimpleAttribute prev)
Adds a simple attribute (cur) following the simple attribute (prev) to the current data object in the DB-MAIN repository. |
DBMGroup |
copyGroup(DBMGroup orig,
DBMGroup prev)
Copies a instance of group attached to the current data object in the DB-MAIN repository. |
DBMGroup |
createGroup(java.lang.String name,
char type,
int funct,
int min_rep,
int max_rep,
DBMGroup prev)
Creates a new instance of group attached to the current data object in the DB-MAIN repository. |
DBMGroup |
createUniqueGroup(java.lang.String name,
char type,
int funct,
int min_rep,
int max_rep,
DBMGroup prev)
Creates a new unique instance of group attached to the current data object in the DB-MAIN repository. |
void |
deleteDataObject()
Deletes the data object of the DB-MAIN repository represented by the current DBMDataObject instance. |
DBMGroup |
getFirstAccessKey()
Returns the first acces key (index) of the current data object in the DB-MAIN repository. |
DBMCollection |
getFirstCollection()
Returns the first collection of the current data object in the DB-MAIN repository. |
DBMGroup |
getFirstGroup()
Returns the first group of the current data object in the DB-MAIN repository. |
DBMGroup |
getFirstReferentialConstraint()
Returns the first referential constraint (foreign key) of the current data object in the DB-MAIN repository. |
DBMGroup |
getFirstSecondaryIdentifier()
Returns the first secondary identifier of the current data object in the DB-MAIN repository. |
DBMSimpleAttribute |
getFirstSimpleAttribute()
Returns the first simple attribute of the current data object in the DB-MAIN repository. |
DBMCollection |
getLastCollection()
Returns the last collection of the current data object in the DB-MAIN repository. |
DBMGroup |
getLastGroup()
Returns the last group of the current data object in the DB-MAIN repository. |
DBMSimpleAttribute |
getLastSimpleAttribute()
Returns the last simple attribute of the current data object in the DB-MAIN repository. |
DBMGroup |
getNextAccessKey(DBMGroup cur)
Returns the access key (of the current data object) that follows the access key (index) cur in the DB-MAIN repository. |
DBMCollection |
getNextCollection(DBMCollection cur)
Returns the collection (of the current data object) that follows the collection cur in the DB-MAIN repository. |
DBMGroup |
getNextGroup(DBMGroup cur)
Returns the group (of the current data object) that follows the group cur in the DB-MAIN repository. |
DBMGroup |
getNextReferentialConstraint(DBMGroup cur)
Returns the referential constraint (of the current data object) that follows the referential constraint (foreign key) cur in the DB-MAIN repository. |
DBMGroup |
getNextSecondaryIdentifier(DBMGroup cur)
Returns the secondary identifier (of the current data object) that follows the secondary identifier cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getNextSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute (of the current data object) that follows the simple attribute cur in the DB-MAIN repository. |
DBMCollection |
getPreviousCollection(DBMCollection cur)
Returns the collection (of the current data object) that precedes the collection cur in the DB-MAIN repository. |
DBMGroup |
getPreviousGroup(DBMGroup cur)
Returns the group (of the current data object) that precedes the group cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getPreviousSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute (of the current data object) that precedes the simple attribute cur in the DB-MAIN repository. |
DBMGroup |
getPrimaryIdentifier()
Returns the primary identifier of the current data object in the DB-MAIN repository. |
DBMSchema |
getSchema()
Returns the schema of the current data object. |
void |
removeCollection()
Removes the list of collection attached to the current data object in the DB-MAIN repository. |
void |
removeCollection(DBMCollection cur)
Removes a collection attached to the current data object in the DB-MAIN repository. |
void |
removeGroup()
Removes the list of group attached to the current data object in the DB-MAIN repository. |
void |
removeSchema()
Removes the schema attached to the current data object in the DB-MAIN repository. |
void |
removeSimpleAttribute()
Removes the list of simple attribute attached to the current data object 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 java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBMDataObject(int id,
long sysid)
id - the object identifier of a data object.sysid - the system identifier of a data object.public DBMDataObject(int id)
id - the object identifier of a data object.| Method Detail |
|---|
public void deleteDataObject()
public DBMGroup createGroup(java.lang.String name,
char type,
int funct,
int min_rep,
int max_rep,
DBMGroup prev)
name - the value of the field name.type - the value of the field type.funct - the value of the field function.min_rep - the value of the field minimum cardinality.max_rep - the value of the field maximum cardinality.prev - the group after which the created object is inserted.
public DBMGroup createUniqueGroup(java.lang.String name,
char type,
int funct,
int min_rep,
int max_rep,
DBMGroup prev)
name - the value of the field name.type - the value of the field type.funct - the value of the field function.min_rep - the value of the field minimum cardinality.max_rep - the value of the field maximum cardinality.prev - the group after which the created object is inserted.
public DBMGroup copyGroup(DBMGroup orig,
DBMGroup prev)
orig - the group to be copied.prev - the group after which the copied object is inserted.
public DBMGroup getFirstGroup()
public DBMGroup getLastGroup()
public DBMGroup getNextGroup(DBMGroup cur)
cur - the current group.
public DBMGroup getPreviousGroup(DBMGroup cur)
cur - the current group.
public void addFirstGroup(DBMGroup cur)
cur - the added group.
public void addNextGroup(DBMGroup cur,
DBMGroup prev)
cur - the added group.prev - the group after which the group cur is inserted.public void removeGroup()
public DBMSimpleAttribute getFirstSimpleAttribute()
public DBMSimpleAttribute getLastSimpleAttribute()
public DBMSimpleAttribute getNextSimpleAttribute(DBMSimpleAttribute cur)
cur - the current simple attribute.
public DBMSimpleAttribute getPreviousSimpleAttribute(DBMSimpleAttribute cur)
cur - the current simple attribute.
public void addFirstSimpleAttribute(DBMSimpleAttribute cur)
cur - the added simple attribute.
public void addNextSimpleAttribute(DBMSimpleAttribute cur,
DBMSimpleAttribute prev)
cur - the added simple attribute.prev - the simple attribute after which the simple attribute cur is inserted.public void removeSimpleAttribute()
public DBMCollection getFirstCollection()
public DBMCollection getLastCollection()
public DBMCollection getNextCollection(DBMCollection cur)
cur - the current collection.
public DBMCollection getPreviousCollection(DBMCollection cur)
cur - the current collection.
public void removeCollection()
public void removeCollection(DBMCollection cur)
cur - the collection to detach.public DBMSchema getSchema()
public void removeSchema()
public DBMGroup getPrimaryIdentifier()
public DBMGroup getFirstSecondaryIdentifier()
public DBMGroup getNextSecondaryIdentifier(DBMGroup cur)
cur - the current secondary identifier.
public DBMGroup getFirstAccessKey()
public DBMGroup getNextAccessKey(DBMGroup cur)
cur - the current access key.
public DBMGroup getFirstReferentialConstraint()
public DBMGroup getNextReferentialConstraint(DBMGroup cur)
cur - the current referential constraint.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||