|
||||||||
| 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.DBMDataObject
com.dbmain.jidbm.DBMEntityRelationshipType
public class DBMEntityRelationshipType
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.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 |
| Constructor Detail |
|---|
public DBMEntityRelationshipType(int id,
long sysid)
id - the object identifier of a entity relationship type.sysid - the system identifier of a entity relationship type.public DBMEntityRelationshipType(int id)
id - the object identifier of a entity relationship type.| Method Detail |
|---|
public void deleteEntityRelationshipType()
public DBMProcessingUnit createProcessingUnit(java.lang.String name,
java.lang.String short_name,
char type,
char mode,
DBMSchema schema,
DBMProcessingUnit prev)
createProcessingUnit in interface DBMProcessingUnitOwnername - 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.
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)
createSimpleAttribute in interface DBMAttributeOwnername - 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.
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)
createCompoundAttribute in interface DBMAttributeOwnername - 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.
public DBMProcessingUnit createUniqueProcessingUnit(java.lang.String name,
java.lang.String short_name,
char type,
char mode,
DBMSchema schema,
DBMProcessingUnit prev)
createUniqueProcessingUnit in interface DBMProcessingUnitOwnername - 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.
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)
createUniqueSimpleAttribute in interface DBMAttributeOwnername - 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.
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)
createUniqueCompoundAttribute in interface DBMAttributeOwnername - 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.
public DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig,
DBMProcessingUnit prev)
copyProcessingUnit in interface DBMProcessingUnitOwnerorig - the processing unit to be copied.prev - the processing unit after which the copied object is inserted.
public DBMAttribute copyAttribute(DBMAttribute orig,
DBMAttribute prev)
copyAttribute in interface DBMAttributeOwnerorig - the attribute to be copied.prev - the attribute after which the copied object is inserted.
public DBMProcessingUnit getFirstProcessingUnit()
getFirstProcessingUnit in interface DBMProcessingUnitOwnerpublic DBMProcessingUnit getLastProcessingUnit()
getLastProcessingUnit in interface DBMProcessingUnitOwnerpublic DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
getNextProcessingUnit in interface DBMProcessingUnitOwnercur - the current processing unit.
public DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
getPreviousProcessingUnit in interface DBMProcessingUnitOwnercur - the current processing unit.
public void addFirstProcessingUnit(DBMProcessingUnit cur)
addFirstProcessingUnit in interface DBMProcessingUnitOwnercur - the added processing unit.
public void addNextProcessingUnit(DBMProcessingUnit cur,
DBMProcessingUnit prev)
addNextProcessingUnit in interface DBMProcessingUnitOwnercur - the added processing unit.prev - the processing unit after which the processing unit cur is inserted.public void removeProcessingUnit()
removeProcessingUnit in interface DBMProcessingUnitOwnerpublic DBMAttribute getFirstAttribute()
getFirstAttribute in interface DBMAttributeOwnerpublic DBMAttribute getLastAttribute()
getLastAttribute in interface DBMAttributeOwnerpublic DBMAttribute getNextAttribute(DBMAttribute cur)
getNextAttribute in interface DBMAttributeOwnercur - the current attribute.
public DBMAttribute getPreviousAttribute(DBMAttribute cur)
getPreviousAttribute in interface DBMAttributeOwnercur - the current attribute.
public DBMSimpleAttribute getFirstAttributeSimpleAttribute()
getFirstAttributeSimpleAttribute in interface DBMAttributeOwnerpublic DBMSimpleAttribute getLastAttributeSimpleAttribute()
getLastAttributeSimpleAttribute in interface DBMAttributeOwnerpublic DBMSimpleAttribute getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
getNextAttributeSimpleAttribute in interface DBMAttributeOwnercur - the current simple attribute.
public DBMSimpleAttribute getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
getPreviousAttributeSimpleAttribute in interface DBMAttributeOwnercur - the current simple attribute.
public DBMCompoundAttribute getFirstAttributeCompoundAttribute()
getFirstAttributeCompoundAttribute in interface DBMAttributeOwnerpublic DBMCompoundAttribute getLastAttributeCompoundAttribute()
getLastAttributeCompoundAttribute in interface DBMAttributeOwnerpublic DBMCompoundAttribute getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
getNextAttributeCompoundAttribute in interface DBMAttributeOwnercur - the current compound attribute.
public DBMCompoundAttribute getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
getPreviousAttributeCompoundAttribute in interface DBMAttributeOwnercur - the current compound attribute.
public void addFirstAttribute(DBMAttribute cur)
addFirstAttribute in interface DBMAttributeOwnercur - the added attribute.
public void addNextAttribute(DBMAttribute cur,
DBMAttribute prev)
addNextAttribute in interface DBMAttributeOwnercur - the added attribute.prev - the attribute after which the attribute cur is inserted.public void removeAttribute()
removeAttribute in interface DBMAttributeOwnerpublic DBMEntityRelationshipType unprefixAttribute(boolean show)
unprefixAttribute in interface DBMAttributeOwnershow - indicate if the transformation dialogs must be displayed.
public DBMAttribute findAttribute(java.lang.String name)
findAttribute in interface DBMAttributeOwnername - the name of the attribute that must be found.
public DBMProcessingUnit findProcessingUnit(java.lang.String name)
findProcessingUnit in interface DBMProcessingUnitOwnername - the name of the processing unit that must be found.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||