com.dbmain.jidbm
Class DBMConstraintMember

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConstraintMember

public class DBMConstraintMember
extends DBMGenericObject

The DBMConstraintMember class represents constraint member objects of the DB-MAIN repository.


Field Summary
static char OR_MEM_CST
          Constant of field memberRole: Origin of the constraint.
static char TAR_MEM_CST
          Constant of field memberRole: Target of the constraint.
 
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
DBMConstraintMember(int id)
          Creates a new instance of the DBMConstraintMember class representing the constraint member identified by id and the current project in DB-MAIN.
DBMConstraintMember(int id, long sysid)
          Creates a new instance of the DBMConstraintMember class representing the constraint member identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void deleteConstraintMember()
          Deletes the constraint member of the DB-MAIN repository represented by the current DBMConstraintMember instance.
 DBMConstraint getConstraint()
          Returns the constraint of the current constraint member.
 DBMGroup getGroup()
          Returns the group of the current constraint member.
 char getMemberRole()
          Returns the member role of the current constraint member.
 java.lang.String getMemberRoleName()
          Returns the member role constant name of the current constraint member.
 void removeConstraint()
          Removes the constraint attached to the current constraint member in the DB-MAIN repository.
 void removeGroup()
          Removes the group attached to the current constraint member in the DB-MAIN repository.
 void setMemberRole(char val)
          Updates the value of member role in the current constraint member in the DB-MAIN repository.
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TAR_MEM_CST

public static final char TAR_MEM_CST
Constant of field memberRole: Target of the constraint.

See Also:
Constant Field Values

OR_MEM_CST

public static final char OR_MEM_CST
Constant of field memberRole: Origin of the constraint.

See Also:
Constant Field Values
Constructor Detail

DBMConstraintMember

public DBMConstraintMember(int id,
                           long sysid)
Creates a new instance of the DBMConstraintMember class representing the constraint member identified by id and sysid in the DB-MAIN repository.

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

DBMConstraintMember

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

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

getMemberRole

public char getMemberRole()
Returns the member role of the current constraint member.

Returns:
the char value of the field memberRole.

getMemberRoleName

public java.lang.String getMemberRoleName()
Returns the member role constant name of the current constraint member.

Returns:
the string representation of the field memberRole.

setMemberRole

public void setMemberRole(char val)
Updates the value of member role in the current constraint member in the DB-MAIN repository.

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

deleteConstraintMember

public void deleteConstraintMember()
Deletes the constraint member of the DB-MAIN repository represented by the current DBMConstraintMember instance.


getGroup

public DBMGroup getGroup()
Returns the group of the current constraint member.

Returns:
the DBMGroup instance representing the group.

removeGroup

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


getConstraint

public DBMConstraint getConstraint()
Returns the constraint of the current constraint member.

Returns:
the DBMConstraint instance representing the constraint.

removeConstraint

public void removeConstraint()
Removes the constraint attached to the current constraint member in the DB-MAIN repository.