com.dbmain.jidbm
Class DBMEntityRelationshipType

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMDataObject
              extended by com.dbmain.jidbm.DBMEntityRelationshipType
All Implemented Interfaces:
DBMAttributeOwner, DBMProcessingUnitOwner
Direct Known Subclasses:
DBMEntityType, DBMRelationshipType

public class DBMEntityRelationshipType
extends DBMDataObject
implements DBMProcessingUnitOwner, DBMAttributeOwner

The DBMEntityRelationshipType class represents entity relationship type objects of the DB-MAIN repository.

A entity relationship type can have several processing units and attributes. The attribute instances fall into 2 classes: simple attribute and compound attribute.


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
DBMEntityRelationshipType(int id)
          Creates a new instance of the DBMEntityRelationshipType class representing the entity relationship type identified by id and the current project in DB-MAIN.
DBMEntityRelationshipType(int id, long sysid)
          Creates a new instance of the DBMEntityRelationshipType class representing the entity relationship type identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstAttribute(DBMAttribute cur)
          Adds a first attribute (cur) to the current entity relationship type in the DB-MAIN repository.
 void addFirstProcessingUnit(DBMProcessingUnit cur)
          Adds a first processing unit (cur) to the current entity relationship type in the DB-MAIN repository.
 void addNextAttribute(DBMAttribute cur, DBMAttribute prev)
          Adds a attribute (cur) following the attribute (prev) to the current entity relationship type in the DB-MAIN repository.
 void addNextProcessingUnit(DBMProcessingUnit cur, DBMProcessingUnit prev)
          Adds a processing unit (cur) following the processing unit (prev) to the current entity relationship type in the DB-MAIN repository.
 DBMAttribute copyAttribute(DBMAttribute orig, DBMAttribute prev)
          Copies a instance of attribute attached to the current entity relationship type in the DB-MAIN repository.
 DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig, DBMProcessingUnit prev)
          Copies a instance of processing unit attached to the current entity relationship type in the DB-MAIN repository.
 DBMCompoundAttribute createCompoundAttribute(java.lang.String name, java.lang.String short_name, int min_rep, int max_rep, char set_type, DBMSchema schema, DBMAttribute prev)
          Creates a new instance of compound attribute attached to the current entity relationship type in the DB-MAIN repository.
 DBMProcessingUnit createProcessingUnit(java.lang.String name, java.lang.String short_name, char type, char mode, DBMSchema schema, DBMProcessingUnit prev)
          Creates a new instance of processing unit attached to the current entity relationship type in the DB-MAIN repository.
 DBMSimpleAttribute createSimpleAttribute(java.lang.String name, java.lang.String short_name, int min_rep, int max_rep, char set_type, char type, boolean stable, boolean recyclable, int length, short decim, DBMSchema schema, DBMAttribute prev)
          Creates a new instance of simple attribute attached to the current entity relationship type in the DB-MAIN repository.
 DBMCompoundAttribute createUniqueCompoundAttribute(java.lang.String name, java.lang.String short_name, int min_rep, int max_rep, char set_type, DBMSchema schema, DBMAttribute prev)
          Creates a new unique instance of compound attribute attached to the current entity relationship type in the DB-MAIN repository.
 DBMProcessingUnit createUniqueProcessingUnit(java.lang.String name, java.lang.String short_name, char type, char mode, DBMSchema schema, DBMProcessingUnit prev)
          Creates a new unique instance of processing unit attached to the current entity relationship type in the DB-MAIN repository.
 DBMSimpleAttribute createUniqueSimpleAttribute(java.lang.String name, java.lang.String short_name, int min_rep, int max_rep, char set_type, char type, boolean stable, boolean recyclable, int length, short decim, DBMSchema schema, DBMAttribute prev)
          Creates a new unique instance of simple attribute attached to the current entity relationship type in the DB-MAIN repository.
 void deleteEntityRelationshipType()
          Deletes the entity relationship type of the DB-MAIN repository represented by the current DBMEntityRelationshipType instance.
 DBMAttribute findAttribute(java.lang.String name)
          Returns the attribute that have a specified name in the current entity-relationship type owner.
 DBMProcessingUnit findProcessingUnit(java.lang.String name)
          Returns the processing unit that have a specified name in the current entity relationship type.
 DBMAttribute getFirstAttribute()
          Returns the first attribute of the current entity relationship type in the DB-MAIN repository.
 DBMCompoundAttribute getFirstAttributeCompoundAttribute()
          Returns the first compound attribute attribute of the current entity relationship type in the DB-MAIN repository.
 DBMSimpleAttribute getFirstAttributeSimpleAttribute()
          Returns the first simple attribute attribute of the current entity relationship type in the DB-MAIN repository.
 DBMProcessingUnit getFirstProcessingUnit()
          Returns the first processing unit of the current entity relationship type in the DB-MAIN repository.
 DBMAttribute getLastAttribute()
          Returns the last attribute of the current entity relationship type in the DB-MAIN repository.
 DBMCompoundAttribute getLastAttributeCompoundAttribute()
          Returns the last compound attribute attribute of the current entity relationship type in the DB-MAIN repository.
 DBMSimpleAttribute getLastAttributeSimpleAttribute()
          Returns the last simple attribute attribute of the current entity relationship type in the DB-MAIN repository.
 DBMProcessingUnit getLastProcessingUnit()
          Returns the last processing unit of the current entity relationship type in the DB-MAIN repository.
 DBMAttribute getNextAttribute(DBMAttribute cur)
          Returns the attribute (of the current entity relationship type) that follows the attribute cur in the DB-MAIN repository.
 DBMCompoundAttribute getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute attribute (of the current entity relationship type) that follows the compound attribute cur in the DB-MAIN repository.
 DBMSimpleAttribute getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute attribute (of the current entity relationship type) that follows the simple attribute cur in the DB-MAIN repository.
 DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current entity relationship type) that follows the processing unit cur in the DB-MAIN repository.
 DBMAttribute getPreviousAttribute(DBMAttribute cur)
          Returns the attribute (of the current entity relationship type) that precedes the attribute cur in the DB-MAIN repository.
 DBMCompoundAttribute getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute attribute (of the current entity relationship type) that precedes the compound attribute cur in the DB-MAIN repository.
 DBMSimpleAttribute getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute attribute (of the current entity relationship type) that precedes the simple attribute cur in the DB-MAIN repository.
 DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current entity relationship type) that precedes the processing unit cur in the DB-MAIN repository.
 void removeAttribute()
          Removes the list of attribute attached to the current entity relationship type in the DB-MAIN repository.
 void removeProcessingUnit()
          Removes the list of processing unit attached to the current entity relationship type in the DB-MAIN repository.
 DBMEntityRelationshipType unprefixAttribute(boolean show)
          Unprefix the attribute names of the current entity relationship type.
 
Methods inherited from class com.dbmain.jidbm.DBMDataObject
addFirstGroup, addFirstSimpleAttribute, addNextGroup, addNextSimpleAttribute, copyGroup, createGroup, createUniqueGroup, deleteDataObject, getFirstAccessKey, getFirstCollection, getFirstGroup, getFirstReferentialConstraint, getFirstSecondaryIdentifier, getFirstSimpleAttribute, getLastCollection, getLastGroup, getLastSimpleAttribute, getNextAccessKey, getNextCollection, getNextGroup, getNextReferentialConstraint, getNextSecondaryIdentifier, getNextSimpleAttribute, getPreviousCollection, getPreviousGroup, getPreviousSimpleAttribute, getPrimaryIdentifier, getSchema, removeCollection, removeCollection, removeGroup, removeSchema, removeSimpleAttribute
 
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
 

Constructor Detail

DBMEntityRelationshipType

public DBMEntityRelationshipType(int id,
                                 long sysid)
Creates a new instance of the DBMEntityRelationshipType class representing the entity relationship type identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a entity relationship type.
sysid - the system identifier of a entity relationship type.

DBMEntityRelationshipType

public DBMEntityRelationshipType(int id)
Creates a new instance of the DBMEntityRelationshipType class representing the entity relationship type identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a entity relationship type.
Method Detail

deleteEntityRelationshipType

public void deleteEntityRelationshipType()
Deletes the entity relationship type of the DB-MAIN repository represented by the current DBMEntityRelationshipType instance.


createProcessingUnit

public DBMProcessingUnit createProcessingUnit(java.lang.String name,
                                              java.lang.String short_name,
                                              char type,
                                              char mode,
                                              DBMSchema schema,
                                              DBMProcessingUnit prev)
Creates a new instance of processing unit attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
createProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
type - the value of the field type.
mode - the value of the field mode.
schema - the schema linked to the created object.
prev - the processing unit after which the created object is inserted.
Returns:
the DBMProcessingUnit instance representing the new processing unit.

createSimpleAttribute

public DBMSimpleAttribute createSimpleAttribute(java.lang.String name,
                                                java.lang.String short_name,
                                                int min_rep,
                                                int max_rep,
                                                char set_type,
                                                char type,
                                                boolean stable,
                                                boolean recyclable,
                                                int length,
                                                short decim,
                                                DBMSchema schema,
                                                DBMAttribute prev)
Creates a new instance of simple attribute attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
createSimpleAttribute in interface DBMAttributeOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
min_rep - the value of the field minimum cardinality.
max_rep - the value of the field maximum cardinality.
set_type - the value of the field set type.
type - the value of the field type.
stable - the value of the field stable.
recyclable - the value of the field recyclable.
length - the value of the field length.
decim - the value of the field decimal number.
schema - the schema linked to the created object.
prev - the attribute after which the created object is inserted.
Returns:
the DBMSimpleAttribute instance representing the new simple attribute.

createCompoundAttribute

public DBMCompoundAttribute createCompoundAttribute(java.lang.String name,
                                                    java.lang.String short_name,
                                                    int min_rep,
                                                    int max_rep,
                                                    char set_type,
                                                    DBMSchema schema,
                                                    DBMAttribute prev)
Creates a new instance of compound attribute attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
createCompoundAttribute in interface DBMAttributeOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
min_rep - the value of the field minimum cardinality.
max_rep - the value of the field maximum cardinality.
set_type - the value of the field set type.
schema - the schema linked to the created object.
prev - the attribute after which the created object is inserted.
Returns:
the DBMCompoundAttribute instance representing the new compound attribute.

createUniqueProcessingUnit

public DBMProcessingUnit createUniqueProcessingUnit(java.lang.String name,
                                                    java.lang.String short_name,
                                                    char type,
                                                    char mode,
                                                    DBMSchema schema,
                                                    DBMProcessingUnit prev)
Creates a new unique instance of processing unit attached to the current entity relationship type in the DB-MAIN repository. This method insures that the name of the created object is unique in the repository (suffix must be added).

Specified by:
createUniqueProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
type - the value of the field type.
mode - the value of the field mode.
schema - the schema linked to the created object.
prev - the processing unit after which the created object is inserted.
Returns:
the DBMProcessingUnit instance representing the new unique processing unit.

createUniqueSimpleAttribute

public DBMSimpleAttribute createUniqueSimpleAttribute(java.lang.String name,
                                                      java.lang.String short_name,
                                                      int min_rep,
                                                      int max_rep,
                                                      char set_type,
                                                      char type,
                                                      boolean stable,
                                                      boolean recyclable,
                                                      int length,
                                                      short decim,
                                                      DBMSchema schema,
                                                      DBMAttribute prev)
Creates a new unique instance of simple attribute attached to the current entity relationship type in the DB-MAIN repository. This method insures that the name of the created object is unique in the repository (suffix must be added).

Specified by:
createUniqueSimpleAttribute in interface DBMAttributeOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
min_rep - the value of the field minimum cardinality.
max_rep - the value of the field maximum cardinality.
set_type - the value of the field set type.
type - the value of the field type.
stable - the value of the field stable.
recyclable - the value of the field recyclable.
length - the value of the field length.
decim - the value of the field decimal number.
schema - the schema linked to the created object.
prev - the attribute after which the created object is inserted.
Returns:
the DBMSimpleAttribute instance representing the new unique simple attribute.

createUniqueCompoundAttribute

public DBMCompoundAttribute createUniqueCompoundAttribute(java.lang.String name,
                                                          java.lang.String short_name,
                                                          int min_rep,
                                                          int max_rep,
                                                          char set_type,
                                                          DBMSchema schema,
                                                          DBMAttribute prev)
Creates a new unique instance of compound attribute attached to the current entity relationship type in the DB-MAIN repository. This method insures that the name of the created object is unique in the repository (suffix must be added).

Specified by:
createUniqueCompoundAttribute in interface DBMAttributeOwner
Parameters:
name - the value of the field name.
short_name - the value of the field short name.
min_rep - the value of the field minimum cardinality.
max_rep - the value of the field maximum cardinality.
set_type - the value of the field set type.
schema - the schema linked to the created object.
prev - the attribute after which the created object is inserted.
Returns:
the DBMCompoundAttribute instance representing the new unique compound attribute.

copyProcessingUnit

public DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig,
                                            DBMProcessingUnit prev)
Copies a instance of processing unit attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
copyProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
orig - the processing unit to be copied.
prev - the processing unit after which the copied object is inserted.
Returns:
the DBMProcessingUnit instance representing the copied processing unit.

copyAttribute

public DBMAttribute copyAttribute(DBMAttribute orig,
                                  DBMAttribute prev)
Copies a instance of attribute attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
copyAttribute in interface DBMAttributeOwner
Parameters:
orig - the attribute to be copied.
prev - the attribute after which the copied object is inserted.
Returns:
the DBMAttribute instance representing the copied attribute.

getFirstProcessingUnit

public DBMProcessingUnit getFirstProcessingUnit()
Returns the first processing unit of the current entity relationship type in the DB-MAIN repository.

Specified by:
getFirstProcessingUnit in interface DBMProcessingUnitOwner
Returns:
the DBMProcessingUnit instance representing the first processing unit.

getLastProcessingUnit

public DBMProcessingUnit getLastProcessingUnit()
Returns the last processing unit of the current entity relationship type in the DB-MAIN repository.

Specified by:
getLastProcessingUnit in interface DBMProcessingUnitOwner
Returns:
the DBMProcessingUnit instance representing the last processing unit.

getNextProcessingUnit

public DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit (of the current entity relationship type) that follows the processing unit cur in the DB-MAIN repository.

Specified by:
getNextProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the next processing unit.

getPreviousProcessingUnit

public DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit (of the current entity relationship type) that precedes the processing unit cur in the DB-MAIN repository.

Specified by:
getPreviousProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the previous processing unit.

addFirstProcessingUnit

public void addFirstProcessingUnit(DBMProcessingUnit cur)
Adds a first processing unit (cur) to the current entity relationship type in the DB-MAIN repository.

Specified by:
addFirstProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
cur - the added processing unit.

addNextProcessingUnit

public void addNextProcessingUnit(DBMProcessingUnit cur,
                                  DBMProcessingUnit prev)
Adds a processing unit (cur) following the processing unit (prev) to the current entity relationship type in the DB-MAIN repository.

Specified by:
addNextProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
cur - the added processing unit.
prev - the processing unit after which the processing unit cur is inserted.

removeProcessingUnit

public void removeProcessingUnit()
Removes the list of processing unit attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
removeProcessingUnit in interface DBMProcessingUnitOwner

getFirstAttribute

public DBMAttribute getFirstAttribute()
Returns the first attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getFirstAttribute in interface DBMAttributeOwner
Returns:
the DBMAttribute instance representing the first attribute.

getLastAttribute

public DBMAttribute getLastAttribute()
Returns the last attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getLastAttribute in interface DBMAttributeOwner
Returns:
the DBMAttribute instance representing the last attribute.

getNextAttribute

public DBMAttribute getNextAttribute(DBMAttribute cur)
Returns the attribute (of the current entity relationship type) that follows the attribute cur in the DB-MAIN repository.

Specified by:
getNextAttribute in interface DBMAttributeOwner
Parameters:
cur - the current attribute.
Returns:
the DBMAttribute instance representing the next attribute.

getPreviousAttribute

public DBMAttribute getPreviousAttribute(DBMAttribute cur)
Returns the attribute (of the current entity relationship type) that precedes the attribute cur in the DB-MAIN repository.

Specified by:
getPreviousAttribute in interface DBMAttributeOwner
Parameters:
cur - the current attribute.
Returns:
the DBMAttribute instance representing the previous attribute.

getFirstAttributeSimpleAttribute

public DBMSimpleAttribute getFirstAttributeSimpleAttribute()
Returns the first simple attribute attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getFirstAttributeSimpleAttribute in interface DBMAttributeOwner
Returns:
the DBMSimpleAttribute instance representing the first simple attribute.

getLastAttributeSimpleAttribute

public DBMSimpleAttribute getLastAttributeSimpleAttribute()
Returns the last simple attribute attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getLastAttributeSimpleAttribute in interface DBMAttributeOwner
Returns:
the DBMSimpleAttribute instance representing the last simple attribute.

getNextAttributeSimpleAttribute

public DBMSimpleAttribute getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current entity relationship type) that follows the simple attribute cur in the DB-MAIN repository.

Specified by:
getNextAttributeSimpleAttribute in interface DBMAttributeOwner
Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the next simple attribute.

getPreviousAttributeSimpleAttribute

public DBMSimpleAttribute getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current entity relationship type) that precedes the simple attribute cur in the DB-MAIN repository.

Specified by:
getPreviousAttributeSimpleAttribute in interface DBMAttributeOwner
Parameters:
cur - the current simple attribute.
Returns:
the DBMSimpleAttribute instance representing the previous simple attribute.

getFirstAttributeCompoundAttribute

public DBMCompoundAttribute getFirstAttributeCompoundAttribute()
Returns the first compound attribute attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getFirstAttributeCompoundAttribute in interface DBMAttributeOwner
Returns:
the DBMCompoundAttribute instance representing the first compound attribute.

getLastAttributeCompoundAttribute

public DBMCompoundAttribute getLastAttributeCompoundAttribute()
Returns the last compound attribute attribute of the current entity relationship type in the DB-MAIN repository.

Specified by:
getLastAttributeCompoundAttribute in interface DBMAttributeOwner
Returns:
the DBMCompoundAttribute instance representing the last compound attribute.

getNextAttributeCompoundAttribute

public DBMCompoundAttribute getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current entity relationship type) that follows the compound attribute cur in the DB-MAIN repository.

Specified by:
getNextAttributeCompoundAttribute in interface DBMAttributeOwner
Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the next compound attribute.

getPreviousAttributeCompoundAttribute

public DBMCompoundAttribute getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current entity relationship type) that precedes the compound attribute cur in the DB-MAIN repository.

Specified by:
getPreviousAttributeCompoundAttribute in interface DBMAttributeOwner
Parameters:
cur - the current compound attribute.
Returns:
the DBMCompoundAttribute instance representing the previous compound attribute.

addFirstAttribute

public void addFirstAttribute(DBMAttribute cur)
Adds a first attribute (cur) to the current entity relationship type in the DB-MAIN repository.

Specified by:
addFirstAttribute in interface DBMAttributeOwner
Parameters:
cur - the added attribute.

addNextAttribute

public void addNextAttribute(DBMAttribute cur,
                             DBMAttribute prev)
Adds a attribute (cur) following the attribute (prev) to the current entity relationship type in the DB-MAIN repository.

Specified by:
addNextAttribute in interface DBMAttributeOwner
Parameters:
cur - the added attribute.
prev - the attribute after which the attribute cur is inserted.

removeAttribute

public void removeAttribute()
Removes the list of attribute attached to the current entity relationship type in the DB-MAIN repository.

Specified by:
removeAttribute in interface DBMAttributeOwner

unprefixAttribute

public DBMEntityRelationshipType unprefixAttribute(boolean show)
Unprefix the attribute names of the current entity relationship type.

Specified by:
unprefixAttribute in interface DBMAttributeOwner
Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMEntityRelationshipType instance representing the owner.

findAttribute

public DBMAttribute findAttribute(java.lang.String name)
Returns the attribute that have a specified name in the current entity-relationship type owner. The search is case insensitive and is applied to all the attribute hierarchy.

Specified by:
findAttribute in interface DBMAttributeOwner
Parameters:
name - the name of the attribute that must be found.
Returns:
the DBMAttribute instance named 'name'.

findProcessingUnit

public DBMProcessingUnit findProcessingUnit(java.lang.String name)
Returns the processing unit that have a specified name in the current entity relationship type. The search is case insensitive.

Specified by:
findProcessingUnit in interface DBMProcessingUnitOwner
Parameters:
name - the name of the processing unit that must be found.
Returns:
the DBMProcessingUnit instance named 'name'.