|
||||||||
| 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.DBMRole
public class DBMRole
The DBMRole class represents role objects of the DB-MAIN repository.
A role can have several groups and entity types.
| Field Summary | |
|---|---|
static char |
AGGREGATION
Constant of field aggregation: Aggregation. |
static char |
COMPOSITION
Constant of field aggregation: Composition. |
static int |
N_CARD
Constant of field maximumCardinality: Infinity value (N). |
| 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 | |
|---|---|
DBMRole(int id)
Creates a new instance of the DBMRole class representing the role identified by id and the current project in DB-MAIN. |
|
DBMRole(int id,
long sysid)
Creates a new instance of the DBMRole class representing the role identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstEntityType(DBMEntityType cur)
Adds a first entity type (cur) to the current role in the DB-MAIN repository. |
void |
addNextEntityType(DBMEntityType cur,
DBMEntityType prev)
Adds a entity type (cur) following the entity type (prev) to the current role in the DB-MAIN repository. |
void |
deleteRole()
Deletes the role of the DB-MAIN repository represented by the current DBMRole instance. |
char |
getAggregation()
Returns the aggregation of the current role. |
java.lang.String |
getAggregationName()
Returns the aggregation constant name of the current role. |
DBMEntityType |
getFirstEntityType()
Returns the first entity type of the current role in the DB-MAIN repository. |
DBMGroup |
getFirstMemberOfGroup()
Returns the first group of the current role in the DB-MAIN repository. |
DBMEntityType |
getLastEntityType()
Returns the last entity type of the current role in the DB-MAIN repository. |
DBMGroup |
getLastMemberOfGroup()
Returns the last group of the current role in the DB-MAIN repository. |
int |
getMaximumCardinality()
Returns the maximum cardinality of the current role. |
int |
getMinimumCardinality()
Returns the minimum cardinality of the current role. |
DBMEntityType |
getNextEntityType(DBMEntityType cur)
Returns the entity type (of the current role) that follows the entity type cur in the DB-MAIN repository. |
DBMGroup |
getNextMemberOfGroup(DBMGroup cur)
Returns the group (of the current role) that follows the group cur in the DB-MAIN repository. |
DBMEntityType |
getPreviousEntityType(DBMEntityType cur)
Returns the entity type (of the current role) that precedes the entity type cur in the DB-MAIN repository. |
DBMGroup |
getPreviousMemberOfGroup(DBMGroup cur)
Returns the group (of the current role) that precedes the group cur in the DB-MAIN repository. |
DBMRelationshipType |
getRelationshipType()
Returns the relationship type of the current role. |
void |
removeEntityType()
Removes the list of entity type attached to the current role in the DB-MAIN repository. |
void |
removeMemberOfGroup()
Removes the list of group attached to the current role in the DB-MAIN repository. |
void |
removeMemberOfGroup(DBMGroup cur)
Removes a group attached to the current role in the DB-MAIN repository. |
void |
removeRelationshipType()
Removes the relationship type attached to the current role in the DB-MAIN repository. |
void |
setAggregation(char val)
Updates the value of aggregation in the current role in the DB-MAIN repository. |
void |
setMaximumCardinality(int val)
Updates the value of maximum cardinality in the current role in the DB-MAIN repository. |
void |
setMinimumCardinality(int val)
Updates the value of minimum cardinality in the current role in the DB-MAIN repository. |
java.lang.Object[] |
transformIntoRelationshipType(boolean show)
Transform the current multi entity type role into relationship types. |
| 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 |
| Field Detail |
|---|
public static final int N_CARD
public static final char AGGREGATION
public static final char COMPOSITION
| Constructor Detail |
|---|
public DBMRole(int id,
long sysid)
id - the object identifier of a role.sysid - the system identifier of a role.public DBMRole(int id)
id - the object identifier of a role.| Method Detail |
|---|
public int getMinimumCardinality()
public void setMinimumCardinality(int val)
val - the new int value of the field MinimumCardinality.public int getMaximumCardinality()
public void setMaximumCardinality(int val)
val - the new int value of the field MaximumCardinality.public char getAggregation()
public java.lang.String getAggregationName()
public void setAggregation(char val)
val - the new char value of the field Aggregation.public void deleteRole()
public DBMGroup getFirstMemberOfGroup()
public DBMGroup getLastMemberOfGroup()
public DBMGroup getNextMemberOfGroup(DBMGroup cur)
cur - the current group.
public DBMGroup getPreviousMemberOfGroup(DBMGroup cur)
cur - the current group.
public void removeMemberOfGroup()
public void removeMemberOfGroup(DBMGroup cur)
cur - the group to detach.public DBMEntityType getFirstEntityType()
public DBMEntityType getLastEntityType()
public DBMEntityType getNextEntityType(DBMEntityType cur)
cur - the current entity type.
public DBMEntityType getPreviousEntityType(DBMEntityType cur)
cur - the current entity type.
public void addFirstEntityType(DBMEntityType cur)
cur - the added entity type.
public void addNextEntityType(DBMEntityType cur,
DBMEntityType prev)
cur - the added entity type.prev - the entity type after which the entity type cur is inserted.public void removeEntityType()
public DBMRelationshipType getRelationshipType()
public void removeRelationshipType()
public java.lang.Object[] transformIntoRelationshipType(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 | |||||||