|
||||||||
| 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
com.dbmain.jidbm.DBMEntityRelationshipType
com.dbmain.jidbm.DBMRelationshipType
public class DBMRelationshipType
The DBMRelationshipType class represents relationship type objects of the DB-MAIN repository.
A relationship type can have several roles.
| 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 | |
|---|---|
DBMRelationshipType(int id)
Creates a new instance of the DBMRelationshipType class representing the relationship type identified by id and the current project in DB-MAIN. |
|
DBMRelationshipType(int id,
long sysid)
Creates a new instance of the DBMRelationshipType class representing the relationship type identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstRole(DBMRole cur)
Adds a first role (cur) to the current relationship type in the DB-MAIN repository. |
void |
addNextRole(DBMRole cur,
DBMRole prev)
Adds a role (cur) following the role (prev) to the current relationship type in the DB-MAIN repository. |
DBMRole |
createRole(java.lang.String name,
int min_con,
int max_con,
char aggregation)
Creates a new instance of role attached to the current relationship type in the DB-MAIN repository. |
void |
deleteRelationshipType()
Deletes the relationship type of the DB-MAIN repository represented by the current DBMRelationshipType instance. |
DBMRole |
getFirstRole()
Returns the first role of the current relationship type in the DB-MAIN repository. |
DBMRole |
getLastRole()
Returns the last role of the current relationship type in the DB-MAIN repository. |
DBMRole |
getNextRole(DBMRole cur)
Returns the role (of the current relationship type) that follows the role cur in the DB-MAIN repository. |
DBMRole |
getPreviousRole(DBMRole cur)
Returns the role (of the current relationship type) that precedes the role cur in the DB-MAIN repository. |
void |
removeRole()
Removes the list of role attached to the current relationship type in the DB-MAIN repository. |
java.lang.Object[] |
transformIntoAttribute(boolean show,
boolean multi)
Transform the current relationship type into attributes (referential constraint). |
DBMEntityType |
transformIntoEntityType(boolean show)
Transform the current relationship type into a entity type. |
java.lang.Object[] |
transformIntoObjectAttribute(boolean show)
Transform the current relationship type into object attributes. |
| 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 DBMRelationshipType(int id,
long sysid)
id - the object identifier of a relationship type.sysid - the system identifier of a relationship type.public DBMRelationshipType(int id)
id - the object identifier of a relationship type.| Method Detail |
|---|
public void deleteRelationshipType()
public DBMRole createRole(java.lang.String name,
int min_con,
int max_con,
char aggregation)
name - the value of the field name.min_con - the value of the field minimum cardinality.max_con - the value of the field maximum cardinality.aggregation - the value of the field aggregation.
public DBMRole getFirstRole()
public DBMRole getLastRole()
public DBMRole getNextRole(DBMRole cur)
cur - the current role.
public DBMRole getPreviousRole(DBMRole cur)
cur - the current role.
public void addFirstRole(DBMRole cur)
cur - the added role.
public void addNextRole(DBMRole cur,
DBMRole prev)
cur - the added role.prev - the role after which the role cur is inserted.public void removeRole()
public DBMEntityType transformIntoEntityType(boolean show)
show - indicate if the transformation dialogs must be displayed.
public java.lang.Object[] transformIntoAttribute(boolean show,
boolean multi)
show - indicate if the transformation dialogs must be displayed.multi - indicate if multivalued referential attributes are authorized.
public java.lang.Object[] transformIntoObjectAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||