com.dbmain.jidbm
Class DBMGroup

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMGroup

public class DBMGroup
extends DBMConcreteObject

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 com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getPreviousUserObject, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, removeUserObject, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ASS_GROUP

public static final char ASS_GROUP
Constant of field type: The group represents an association of attributes, roles or other groups.

See Also:
Constant Field Values

COMP_GROUP

public static final char COMP_GROUP
Constant of field type: The group represents a composition of groupes. Do not use this type because it is not yet implemented.

See Also:
Constant Field Values

PRIM_GR

public static final int PRIM_GR
Constant of field function: Primary identifier.

See Also:
Constant Field Values

SEC_GR

public static final int SEC_GR
Constant of field function: Secondary identifier.

See Also:
Constant Field Values

ID_GR

public static final int ID_GR
Constant of field function: Identifier (primary or secondary).

See Also:
Constant Field Values

COEX_GR

public static final int COEX_GR
Constant of field function: Coexistence constraint.

See Also:
Constant Field Values

EXCL_GR

public static final int EXCL_GR
Constant of field function: Exclusion constraint.

See Also:
Constant Field Values

AL1_GR

public static final int AL1_GR
Constant of field function: At-least-one constraint.

See Also:
Constant Field Values

CST_GR

public static final int CST_GR
Constant of field function: Generic user-defined constraint.

See Also:
Constant Field Values

KEY_GR

public static final int KEY_GR
Constant of field function: Access key constraint (index).

See Also:
Constant Field Values

NONE_GR

public static final int NONE_GR
Constant of field function: No constraint.

See Also:
Constant Field Values

N_CARD

public static final int N_CARD
Constant of field maximumCardinality: Infinity value (N).

See Also:
Constant Field Values
Constructor Detail

DBMGroup

public 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.

Parameters:
id - the object identifier of a group.
sysid - the system identifier of a group.

DBMGroup

public DBMGroup(int id)
Creates a new instance of the DBMGroup class representing the group identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a group.
Method Detail

getType

public char getType()
Returns the type of the current group.

Returns:
the char value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current group.

Returns:
the string representation of the field type.

setType

public void setType(char val)
Updates the value of type in the current group in the DB-MAIN repository.

Parameters:
val - the new char value of the field Type.

getFunction

public int getFunction()
Returns the function of the current group.

Returns:
the int value of the field function.

isFunctionConstant

public boolean isFunctionConstant(int cst)
Returns the constant cst value in the function of the current group.

Parameters:
cst - a constant of the field function.
Returns:
the boolean value of constant cst in the field function.

setFunction

public void setFunction(int val)
Updates the value of function in the current group in the DB-MAIN repository.

Parameters:
val - the new int value of the field Function.

setFunctionConstant

public void setFunctionConstant(int cst,
                                boolean val)
Updates the constant cst value of function in the currentgroup in the DB-MAIN repository.

Parameters:
cst - a constant of the field Function.
val - the new boolean value of the constant cst in the field Function.

getMinimumCardinality

public int getMinimumCardinality()
Returns the minimum cardinality of the current group.

Returns:
the int value of the field minimumCardinality.

setMinimumCardinality

public void setMinimumCardinality(int val)
Updates the value of minimum cardinality in the current group in the DB-MAIN repository.

Parameters:
val - the new int value of the field MinimumCardinality.

getMaximumCardinality

public int getMaximumCardinality()
Returns the maximum cardinality of the current group.

Returns:
the int value of the field maximumCardinality.

setMaximumCardinality

public void setMaximumCardinality(int val)
Updates the value of maximum cardinality in the current group in the DB-MAIN repository.

Parameters:
val - the new int value of the field MaximumCardinality.

deleteGroup

public void deleteGroup()
Deletes the group of the DB-MAIN repository represented by the current DBMGroup instance.


createConstraintMember

public DBMConstraintMember createConstraintMember(char mem_role,
                                                  DBMConstraint constraint)
Creates a new instance of constraint member attached to the current group in the DB-MAIN repository.

Parameters:
mem_role - the value of the field member role.
constraint - the constraint linked to the created object.
Returns:
the DBMConstraintMember instance representing the new constraint member.

getFirstMemberOfGroup

public DBMGroup getFirstMemberOfGroup()
Returns the first group of the current group in the DB-MAIN repository.

Returns:
the DBMGroup instance representing the first group.

getLastMemberOfGroup

public DBMGroup getLastMemberOfGroup()
Returns the last group of the current group in the DB-MAIN repository.

Returns:
the DBMGroup instance representing the last group.

getNextMemberOfGroup

public DBMGroup getNextMemberOfGroup(DBMGroup cur)
Returns the group (of the current group) that follows the group cur in the DB-MAIN repository.

Parameters:
cur - the current group.
Returns:
the DBMGroup instance representing the next group.

getPreviousMemberOfGroup

public DBMGroup getPreviousMemberOfGroup(DBMGroup cur)
Returns the group (of the current group) that precedes the group cur in the DB-MAIN repository.

Parameters:
cur - the current group.
Returns:
the DBMGroup instance representing the previous group.

removeMemberOfGroup

public void removeMemberOfGroup()
Removes the list of group attached to the current group in the DB-MAIN repository.


removeMemberOfGroup

public void removeMemberOfGroup(DBMGroup cur)
Removes a group attached to the current group in the DB-MAIN repository.

Parameters:
cur - the group to detach.

getFirstConstraintMember

public DBMConstraintMember getFirstConstraintMember()
Returns the first constraint member of the current group in the DB-MAIN repository.

Returns:
the DBMConstraintMember instance representing the first constraint member.

getLastConstraintMember

public DBMConstraintMember getLastConstraintMember()
Returns the last constraint member of the current group in the DB-MAIN repository.

Returns:
the DBMConstraintMember instance representing the last constraint member.

getNextConstraintMember

public DBMConstraintMember getNextConstraintMember(DBMConstraintMember cur)
Returns the constraint member (of the current group) that follows the constraint member cur in the DB-MAIN repository.

Parameters:
cur - the current constraint member.
Returns:
the DBMConstraintMember instance representing the next constraint member.

getPreviousConstraintMember

public DBMConstraintMember getPreviousConstraintMember(DBMConstraintMember cur)
Returns the constraint member (of the current group) that precedes the constraint member cur in the DB-MAIN repository.

Parameters:
cur - the current constraint member.
Returns:
the DBMConstraintMember instance representing the previous constraint member.

addFirstConstraintMember

public void addFirstConstraintMember(DBMConstraintMember cur)
Adds a first constraint member (cur) to the current group in the DB-MAIN repository.

Parameters:
cur - the added constraint member.

addNextConstraintMember

public 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.

Parameters:
cur - the added constraint member.
prev - the constraint member after which the constraint member cur is inserted.

removeConstraintMember

public void removeConstraintMember()
Removes the list of constraint member attached to the current group in the DB-MAIN repository.


getFirstComponent

public DBMGenericObject getFirstComponent()
Returns the first generic object of the current group in the DB-MAIN repository.

Returns:
the DBMGenericObject instance representing the first generic object.

getLastComponent

public DBMGenericObject getLastComponent()
Returns the last generic object of the current group in the DB-MAIN repository.

Returns:
the DBMGenericObject instance representing the last generic object.

getNextComponent

public DBMGenericObject getNextComponent(DBMGenericObject cur)
Returns the generic object (of the current group) that follows the generic object cur in the DB-MAIN repository.

Parameters:
cur - the current generic object.
Returns:
the DBMGenericObject instance representing the next generic object.

getPreviousComponent

public DBMGenericObject getPreviousComponent(DBMGenericObject cur)
Returns the generic object (of the current group) that precedes the generic object cur in the DB-MAIN repository.

Parameters:
cur - the current generic object.
Returns:
the DBMGenericObject instance representing the previous generic object.

getFirstComponentRole

public DBMRole getFirstComponentRole()
Returns the first role generic object of the current group in the DB-MAIN repository.

Returns:
the DBMRole instance representing the first role.

getLastComponentRole

public DBMRole getLastComponentRole()
Returns the last role generic object of the current group in the DB-MAIN repository.

Returns:
the DBMRole instance representing the last role.

getNextComponentRole

public DBMRole getNextComponentRole(DBMRole cur)
Returns the role generic object (of the current group) that follows the role cur in the DB-MAIN repository.

Parameters:
cur - the current role.
Returns:
the DBMRole instance representing the next role.

getPreviousComponentRole

public DBMRole getPreviousComponentRole(DBMRole cur)
Returns the role generic object (of the current group) that precedes the role cur in the DB-MAIN repository.

Parameters:
cur - the current role.
Returns:
the DBMRole instance representing the previous role.

getFirstComponentSimpleAttribute

public DBMSimpleAttribute getFirstComponentSimpleAttribute()
Returns the first simple attribute generic object of the current group in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the first simple attribute.

getLastComponentSimpleAttribute

public DBMSimpleAttribute getLastComponentSimpleAttribute()
Returns the last simple attribute generic object of the current group in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the last simple attribute.

getNextComponentSimpleAttribute

public 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.

Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the next simple attribute.

getPreviousComponentSimpleAttribute

public 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.

Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the previous simple attribute.

getFirstComponentCompoundAttribute

public DBMCompoundAttribute getFirstComponentCompoundAttribute()
Returns the first compound attribute generic object of the current group in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the first compound attribute.

getLastComponentCompoundAttribute

public DBMCompoundAttribute getLastComponentCompoundAttribute()
Returns the last compound attribute generic object of the current group in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the last compound attribute.

getNextComponentCompoundAttribute

public 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.

Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the next compound attribute.

getPreviousComponentCompoundAttribute

public 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.

Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the previous compound attribute.

getFirstComponentGroup

public DBMGroup getFirstComponentGroup()
Returns the first group generic object of the current group in the DB-MAIN repository.

Returns:
the DBMGroup instance representing the first group.

getLastComponentGroup

public DBMGroup getLastComponentGroup()
Returns the last group generic object of the current group in the DB-MAIN repository.

Returns:
the DBMGroup instance representing the last group.

getNextComponentGroup

public DBMGroup getNextComponentGroup(DBMGroup cur)
Returns the group generic object (of the current group) that follows the group cur in the DB-MAIN repository.

Parameters:
cur - the current group.
Returns:
the DBMGroup instance representing the next group.

getPreviousComponentGroup

public DBMGroup getPreviousComponentGroup(DBMGroup cur)
Returns the group generic object (of the current group) that precedes the group cur in the DB-MAIN repository.

Parameters:
cur - the current group.
Returns:
the DBMGroup instance representing the previous group.

addFirstComponent

public void addFirstComponent(DBMGenericObject cur)
Adds a first generic object (cur) to the current group in the DB-MAIN repository.

Parameters:
cur - the added generic object.

addNextComponent

public 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.

Parameters:
cur - the added generic object.
prev - the generic object after which the generic object cur is inserted.

removeComponent

public void removeComponent()
Removes the list of generic object attached to the current group in the DB-MAIN repository.


getDataObject

public DBMDataObject getDataObject()
Returns the data object of the current group.

Returns:
the DBMDataObject instance representing the data object.

removeDataObject

public void removeDataObject()
Removes the data object attached to the current group in the DB-MAIN repository.


transformIntoRelationshipType

public DBMRelationshipType transformIntoRelationshipType(boolean show)
Transform the current group with referential constraint into a relationship type.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMRelationshipType instance representing the new object created by the transformation.

aggregateIntoCompoundAttribute

public DBMCompoundAttribute aggregateIntoCompoundAttribute(boolean show)
Aggregate the attributes of current group into a compound attribute.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMCompoundAttribute instance representing the new object created by the transformation.

transformIntoMultivaluedAttribute

public DBMAttribute transformIntoMultivaluedAttribute(boolean show)
Transform the attributes of current group into a multivalued attribute.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMAttribute instance representing the new object created by the transformation.

isPrimaryIdentifier

public boolean isPrimaryIdentifier()
Verify if the current group is a primary identifier.

Returns:
true if the group is a primary identifier, false otherwise.

isSecondaryIdentifier

public boolean isSecondaryIdentifier()
Verify if the current group is a secondary identifier.

Returns:
true if the group is a secondary identifier, false otherwise.

isIdentifier

public boolean isIdentifier()
Verify if the current group is a primary or secondary identifier.

Returns:
true if the group is a primary or secondary identifier, false otherwise.

isCoexistence

public boolean isCoexistence()
Verify if the current group is a coexistence constraint.

Returns:
true if the group is a coexistence constraint, false otherwise.

isExclusion

public boolean isExclusion()
Verify if the current group is an exclusion constraint.

Returns:
true if the group is an exclusion constraint, false otherwise.

isAtLeastOne

public boolean isAtLeastOne()
Verify if the current group is an at-least-one constraint.

Returns:
true if the group is an at-least-one constraint, false otherwise.

isExactlyOne

public boolean isExactlyOne()
Verify if the current group is an exactly-one constraint.

Returns:
true if the group is an exactly-one constraint, false otherwise.

isUserConstraint

public boolean isUserConstraint()
Verify if the current group is an user-defined constraint.

Returns:
true if the group is an user-defined constraint, false otherwise.

getUserConstraint

public java.lang.String getUserConstraint()
Return the user-defined constraint of the current group.

Returns:
the name of the user-defined constraint if exists, empty string otherwise.

isAccessKey

public boolean isAccessKey()
Verify if the current group is an access key (index).

Returns:
true if the group is an access key, false otherwise.

isReferentialConstraint

public boolean isReferentialConstraint()
Verify if the current group is origin of a referential constraint (foreign key).

Returns:
true if the group is origin of a referential constraint, false otherwise.

isEqualityConstraint

public boolean isEqualityConstraint()
Verify if the current group is origin of an equality referential constraint (equ. foreign key).

Returns:
true if the group is origin of an equality referential constraint, false otherwise.

isInclusionConstraint

public boolean isInclusionConstraint()
Verify if the current group is origin of an inclusion constraint.

Returns:
true if the group is origin of an inclusion constraint, false otherwise.

isInverseConstraint

public boolean isInverseConstraint()
Verify if the current group participates to an inverse constraint.

Returns:
true if the group participates to an inverse constraint, false otherwise.

isGenericConstraint

public boolean isGenericConstraint()
Verify if the current group is origin of a generic constraint (user-defined constraint).

Returns:
true if the group is origin of a generic constraint, false otherwise.

getFirstConstraint

public DBMConstraint getFirstConstraint()
Returns the first constraint attached to the current group.

Returns:
the DBMConstraint instance representing the first constraint.

getFirstConstraintOrigin

public DBMConstraint getFirstConstraintOrigin()
Returns the first constraint for which the current group is the origin.

Returns:
the DBMConstraint instance representing the first constraint where the group is the origin.

getFirstConstraintTarget

public DBMConstraint getFirstConstraintTarget()
Returns the first constraint for which the current group is the target.

Returns:
the DBMConstraint instance representing the first constraint where the group is the target.

getNextConstraint

public DBMConstraint getNextConstraint(DBMConstraint cur)
Returns the constraint (of the current group) that follows the constraint cur in the DB-MAIN repository.

Parameters:
cur - the current constraint.
Returns:
the DBMConstraint instance representing the next constraint .

getNextConstraintOrigin

public DBMConstraint getNextConstraintOrigin(DBMConstraint cur)
Returns the constraint for which the current group is the origin that follows the specified constraint.

Parameters:
cur - the current constraint for which the group is the origin.
Returns:
the DBMConstraint instance representing the next constraint where the group is the origin.

getNextConstraintTarget

public DBMConstraint getNextConstraintTarget(DBMConstraint cur)
Returns the constraint for which the current group is the target that follows the specified constraint.

Parameters:
cur - the current constraint for which the group is the target.
Returns:
the DBMConstraint instance representing the next constraint where the group is the target.

containComponent

public boolean containComponent(DBMGenericObject go)
Verify if the current group contains a specified generic object.

Parameters:
go - the object for which the group membership must be verified.
Returns:
true if go belongs to the group, false otherwise.

getLinkedGroup

public 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.

Parameters:
cst - a constraint for which the group is either the origin or target.
Returns:
the DBMGroup instance representing the other group linked to the constraint cst.