|
||||||||
| 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.DBMGroup
public class DBMGroup
The DBMGroup class represents group objects of the DB-MAIN repository.
A group can have several groups, constraint members and .
| Field Summary | |
|---|---|
static int |
AL1_GR
Constant of field function: At-least-one constraint. |
static char |
ASS_GROUP
Constant of field type: The group represents an association of attributes, roles or other groups. |
static int |
COEX_GR
Constant of field function: Coexistence constraint. |
static char |
COMP_GROUP
Constant of field type: The group represents a composition of groupes. |
static int |
CST_GR
Constant of field function: Generic user-defined constraint. |
static int |
EXCL_GR
Constant of field function: Exclusion constraint. |
static int |
ID_GR
Constant of field function: Identifier (primary or secondary). |
static int |
KEY_GR
Constant of field function: Access key constraint (index). |
static int |
N_CARD
Constant of field maximumCardinality: Infinity value (N). |
static int |
NONE_GR
Constant of field function: No constraint. |
static int |
PRIM_GR
Constant of field function: Primary identifier. |
static int |
SEC_GR
Constant of field function: Secondary identifier. |
| 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 | |
|---|---|
DBMGroup(int id)
Creates a new instance of the DBMGroup class representing the group identified by id and the current project in DB-MAIN. |
|
DBMGroup(int id,
long sysid)
Creates a new instance of the DBMGroup class representing the group identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstComponent(DBMGenericObject cur)
Adds a first generic object (cur) to the current group in the DB-MAIN repository. |
void |
addFirstConstraintMember(DBMConstraintMember cur)
Adds a first constraint member (cur) to the current group in the DB-MAIN repository. |
void |
addNextComponent(DBMGenericObject cur,
DBMGenericObject prev)
Adds a generic object (cur) following the generic object (prev) to the current group in the DB-MAIN repository. |
void |
addNextConstraintMember(DBMConstraintMember cur,
DBMConstraintMember prev)
Adds a constraint member (cur) following the constraint member (prev) to the current group in the DB-MAIN repository. |
DBMCompoundAttribute |
aggregateIntoCompoundAttribute(boolean show)
Aggregate the attributes of current group into a compound attribute. |
boolean |
containComponent(DBMGenericObject go)
Verify if the current group contains a specified generic object. |
DBMConstraintMember |
createConstraintMember(char mem_role,
DBMConstraint constraint)
Creates a new instance of constraint member attached to the current group in the DB-MAIN repository. |
void |
deleteGroup()
Deletes the group of the DB-MAIN repository represented by the current DBMGroup instance. |
DBMDataObject |
getDataObject()
Returns the data object of the current group. |
DBMGenericObject |
getFirstComponent()
Returns the first generic object of the current group in the DB-MAIN repository. |
DBMCompoundAttribute |
getFirstComponentCompoundAttribute()
Returns the first compound attribute generic object of the current group in the DB-MAIN repository. |
DBMGroup |
getFirstComponentGroup()
Returns the first group generic object of the current group in the DB-MAIN repository. |
DBMRole |
getFirstComponentRole()
Returns the first role generic object of the current group in the DB-MAIN repository. |
DBMSimpleAttribute |
getFirstComponentSimpleAttribute()
Returns the first simple attribute generic object of the current group in the DB-MAIN repository. |
DBMConstraint |
getFirstConstraint()
Returns the first constraint attached to the current group. |
DBMConstraintMember |
getFirstConstraintMember()
Returns the first constraint member of the current group in the DB-MAIN repository. |
DBMConstraint |
getFirstConstraintOrigin()
Returns the first constraint for which the current group is the origin. |
DBMConstraint |
getFirstConstraintTarget()
Returns the first constraint for which the current group is the target. |
DBMGroup |
getFirstMemberOfGroup()
Returns the first group of the current group in the DB-MAIN repository. |
int |
getFunction()
Returns the function of the current group. |
DBMGenericObject |
getLastComponent()
Returns the last generic object of the current group in the DB-MAIN repository. |
DBMCompoundAttribute |
getLastComponentCompoundAttribute()
Returns the last compound attribute generic object of the current group in the DB-MAIN repository. |
DBMGroup |
getLastComponentGroup()
Returns the last group generic object of the current group in the DB-MAIN repository. |
DBMRole |
getLastComponentRole()
Returns the last role generic object of the current group in the DB-MAIN repository. |
DBMSimpleAttribute |
getLastComponentSimpleAttribute()
Returns the last simple attribute generic object of the current group in the DB-MAIN repository. |
DBMConstraintMember |
getLastConstraintMember()
Returns the last constraint member of the current group in the DB-MAIN repository. |
DBMGroup |
getLastMemberOfGroup()
Returns the last group of the current group in the DB-MAIN repository. |
DBMGroup |
getLinkedGroup(DBMConstraint cst)
A constraint is defined between 2 groups, one is the current group, the other one is the group returned by this method. |
int |
getMaximumCardinality()
Returns the maximum cardinality of the current group. |
int |
getMinimumCardinality()
Returns the minimum cardinality of the current group. |
DBMGenericObject |
getNextComponent(DBMGenericObject cur)
Returns the generic object (of the current group) that follows the generic object cur in the DB-MAIN repository. |
DBMCompoundAttribute |
getNextComponentCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute generic object (of the current group) that follows the compound attribute cur in the DB-MAIN repository. |
DBMGroup |
getNextComponentGroup(DBMGroup cur)
Returns the group generic object (of the current group) that follows the group cur in the DB-MAIN repository. |
DBMRole |
getNextComponentRole(DBMRole cur)
Returns the role generic object (of the current group) that follows the role cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getNextComponentSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute generic object (of the current group) that follows the simple attribute cur in the DB-MAIN repository. |
DBMConstraint |
getNextConstraint(DBMConstraint cur)
Returns the constraint (of the current group) that follows the constraint cur in the DB-MAIN repository. |
DBMConstraintMember |
getNextConstraintMember(DBMConstraintMember cur)
Returns the constraint member (of the current group) that follows the constraint member cur in the DB-MAIN repository. |
DBMConstraint |
getNextConstraintOrigin(DBMConstraint cur)
Returns the constraint for which the current group is the origin that follows the specified constraint. |
DBMConstraint |
getNextConstraintTarget(DBMConstraint cur)
Returns the constraint for which the current group is the target that follows the specified constraint. |
DBMGroup |
getNextMemberOfGroup(DBMGroup cur)
Returns the group (of the current group) that follows the group cur in the DB-MAIN repository. |
DBMGenericObject |
getPreviousComponent(DBMGenericObject cur)
Returns the generic object (of the current group) that precedes the generic object cur in the DB-MAIN repository. |
DBMCompoundAttribute |
getPreviousComponentCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute generic object (of the current group) that precedes the compound attribute cur in the DB-MAIN repository. |
DBMGroup |
getPreviousComponentGroup(DBMGroup cur)
Returns the group generic object (of the current group) that precedes the group cur in the DB-MAIN repository. |
DBMRole |
getPreviousComponentRole(DBMRole cur)
Returns the role generic object (of the current group) that precedes the role cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getPreviousComponentSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute generic object (of the current group) that precedes the simple attribute cur in the DB-MAIN repository. |
DBMConstraintMember |
getPreviousConstraintMember(DBMConstraintMember cur)
Returns the constraint member (of the current group) that precedes the constraint member cur in the DB-MAIN repository. |
DBMGroup |
getPreviousMemberOfGroup(DBMGroup cur)
Returns the group (of the current group) that precedes the group cur in the DB-MAIN repository. |
char |
getType()
Returns the type of the current group. |
java.lang.String |
getTypeName()
Returns the type constant name of the current group. |
java.lang.String |
getUserConstraint()
Return the user-defined constraint of the current group. |
boolean |
isAccessKey()
Verify if the current group is an access key (index). |
boolean |
isAtLeastOne()
Verify if the current group is an at-least-one constraint. |
boolean |
isCoexistence()
Verify if the current group is a coexistence constraint. |
boolean |
isEqualityConstraint()
Verify if the current group is origin of an equality referential constraint (equ. foreign key). |
boolean |
isExactlyOne()
Verify if the current group is an exactly-one constraint. |
boolean |
isExclusion()
Verify if the current group is an exclusion constraint. |
boolean |
isFunctionConstant(int cst)
Returns the constant cst value in the function of the current group. |
boolean |
isGenericConstraint()
Verify if the current group is origin of a generic constraint (user-defined constraint). |
boolean |
isIdentifier()
Verify if the current group is a primary or secondary identifier. |
boolean |
isInclusionConstraint()
Verify if the current group is origin of an inclusion constraint. |
boolean |
isInverseConstraint()
Verify if the current group participates to an inverse constraint. |
boolean |
isPrimaryIdentifier()
Verify if the current group is a primary identifier. |
boolean |
isReferentialConstraint()
Verify if the current group is origin of a referential constraint (foreign key). |
boolean |
isSecondaryIdentifier()
Verify if the current group is a secondary identifier. |
boolean |
isUserConstraint()
Verify if the current group is an user-defined constraint. |
void |
removeComponent()
Removes the list of generic object attached to the current group in the DB-MAIN repository. |
void |
removeConstraintMember()
Removes the list of constraint member attached to the current group in the DB-MAIN repository. |
void |
removeDataObject()
Removes the data object attached to the current group in the DB-MAIN repository. |
void |
removeMemberOfGroup()
Removes the list of group attached to the current group in the DB-MAIN repository. |
void |
removeMemberOfGroup(DBMGroup cur)
Removes a group attached to the current group in the DB-MAIN repository. |
void |
setFunction(int val)
Updates the value of function in the current group in the DB-MAIN repository. |
void |
setFunctionConstant(int cst,
boolean val)
Updates the constant cst value of function in the currentgroup in the DB-MAIN repository. |
void |
setMaximumCardinality(int val)
Updates the value of maximum cardinality in the current group in the DB-MAIN repository. |
void |
setMinimumCardinality(int val)
Updates the value of minimum cardinality in the current group in the DB-MAIN repository. |
void |
setType(char val)
Updates the value of type in the current group in the DB-MAIN repository. |
DBMAttribute |
transformIntoMultivaluedAttribute(boolean show)
Transform the attributes of current group into a multivalued attribute. |
DBMRelationshipType |
transformIntoRelationshipType(boolean show)
Transform the current group with referential constraint into a relationship type. |
| 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 char ASS_GROUP
public static final char COMP_GROUP
public static final int PRIM_GR
public static final int SEC_GR
public static final int ID_GR
public static final int COEX_GR
public static final int EXCL_GR
public static final int AL1_GR
public static final int CST_GR
public static final int KEY_GR
public static final int NONE_GR
public static final int N_CARD
| Constructor Detail |
|---|
public DBMGroup(int id,
long sysid)
id - the object identifier of a group.sysid - the system identifier of a group.public DBMGroup(int id)
id - the object identifier of a group.| Method Detail |
|---|
public char getType()
public java.lang.String getTypeName()
public void setType(char val)
val - the new char value of the field Type.public int getFunction()
public boolean isFunctionConstant(int cst)
cst - a constant of the field function.
public void setFunction(int val)
val - the new int value of the field Function.
public void setFunctionConstant(int cst,
boolean val)
cst - a constant of the field Function.val - the new boolean value of the constant cst in the field Function.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 void deleteGroup()
public DBMConstraintMember createConstraintMember(char mem_role,
DBMConstraint constraint)
mem_role - the value of the field member role.constraint - the constraint linked to the created object.
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 DBMConstraintMember getFirstConstraintMember()
public DBMConstraintMember getLastConstraintMember()
public DBMConstraintMember getNextConstraintMember(DBMConstraintMember cur)
cur - the current constraint member.
public DBMConstraintMember getPreviousConstraintMember(DBMConstraintMember cur)
cur - the current constraint member.
public void addFirstConstraintMember(DBMConstraintMember cur)
cur - the added constraint member.
public void addNextConstraintMember(DBMConstraintMember cur,
DBMConstraintMember prev)
cur - the added constraint member.prev - the constraint member after which the constraint member cur is inserted.public void removeConstraintMember()
public DBMGenericObject getFirstComponent()
public DBMGenericObject getLastComponent()
public DBMGenericObject getNextComponent(DBMGenericObject cur)
cur - the current generic object.
public DBMGenericObject getPreviousComponent(DBMGenericObject cur)
cur - the current generic object.
public DBMRole getFirstComponentRole()
public DBMRole getLastComponentRole()
public DBMRole getNextComponentRole(DBMRole cur)
cur - the current role.
public DBMRole getPreviousComponentRole(DBMRole cur)
cur - the current role.
public DBMSimpleAttribute getFirstComponentSimpleAttribute()
public DBMSimpleAttribute getLastComponentSimpleAttribute()
public DBMSimpleAttribute getNextComponentSimpleAttribute(DBMSimpleAttribute cur)
cur - the current simple attribute.
public DBMSimpleAttribute getPreviousComponentSimpleAttribute(DBMSimpleAttribute cur)
cur - the current simple attribute.
public DBMCompoundAttribute getFirstComponentCompoundAttribute()
public DBMCompoundAttribute getLastComponentCompoundAttribute()
public DBMCompoundAttribute getNextComponentCompoundAttribute(DBMCompoundAttribute cur)
cur - the current compound attribute.
public DBMCompoundAttribute getPreviousComponentCompoundAttribute(DBMCompoundAttribute cur)
cur - the current compound attribute.
public DBMGroup getFirstComponentGroup()
public DBMGroup getLastComponentGroup()
public DBMGroup getNextComponentGroup(DBMGroup cur)
cur - the current group.
public DBMGroup getPreviousComponentGroup(DBMGroup cur)
cur - the current group.
public void addFirstComponent(DBMGenericObject cur)
cur - the added generic object.
public void addNextComponent(DBMGenericObject cur,
DBMGenericObject prev)
cur - the added generic object.prev - the generic object after which the generic object cur is inserted.public void removeComponent()
public DBMDataObject getDataObject()
public void removeDataObject()
public DBMRelationshipType transformIntoRelationshipType(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMCompoundAttribute aggregateIntoCompoundAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMAttribute transformIntoMultivaluedAttribute(boolean show)
show - indicate if the transformation dialogs must be displayed.
public boolean isPrimaryIdentifier()
public boolean isSecondaryIdentifier()
public boolean isIdentifier()
public boolean isCoexistence()
public boolean isExclusion()
public boolean isAtLeastOne()
public boolean isExactlyOne()
public boolean isUserConstraint()
public java.lang.String getUserConstraint()
public boolean isAccessKey()
public boolean isReferentialConstraint()
public boolean isEqualityConstraint()
public boolean isInclusionConstraint()
public boolean isInverseConstraint()
public boolean isGenericConstraint()
public DBMConstraint getFirstConstraint()
public DBMConstraint getFirstConstraintOrigin()
public DBMConstraint getFirstConstraintTarget()
public DBMConstraint getNextConstraint(DBMConstraint cur)
cur - the current constraint.
public DBMConstraint getNextConstraintOrigin(DBMConstraint cur)
cur - the current constraint for which the group is the origin.
public DBMConstraint getNextConstraintTarget(DBMConstraint cur)
cur - the current constraint for which the group is the target.
public boolean containComponent(DBMGenericObject go)
go - the object for which the group membership must be verified.
public DBMGroup getLinkedGroup(DBMConstraint cst)
cst - a constraint for which the group is either the origin or target.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||