|
||||||||
| 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.DBMAttribute
com.dbmain.jidbm.DBMCompoundAttribute
public class DBMCompoundAttribute
The DBMCompoundAttribute class represents compound attribute objects of the DB-MAIN repository.
A compound attribute can have several attributes. The attribute instances fall into 2 classes: simple attribute and compound attribute.
| Field Summary |
|---|
| Fields inherited from class com.dbmain.jidbm.DBMAttribute |
|---|
ARRAY_ATT, BAG_ATT, LIST_ATT, N_CARD, SET_ATT, UARRAY_ATT, ULIST_ATT |
| 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 | |
|---|---|
DBMCompoundAttribute(int id)
Creates a new instance of the DBMCompoundAttribute class representing the compound attribute identified by id and the current project in DB-MAIN. |
|
DBMCompoundAttribute(int id,
long sysid)
Creates a new instance of the DBMCompoundAttribute class representing the compound attribute identified by id and sysid in the DB-MAIN repository. |
|
| Method Summary | |
|---|---|
void |
addFirstAttribute(DBMAttribute cur)
Adds a first attribute (cur) to the current compound attribute in the DB-MAIN repository. |
void |
addNextAttribute(DBMAttribute cur,
DBMAttribute prev)
Adds a attribute (cur) following the attribute (prev) to the current compound attribute in the DB-MAIN repository. |
DBMAttribute |
copyAttribute(DBMAttribute orig,
DBMAttribute prev)
Copies a instance of attribute attached to the current compound attribute 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 compound attribute 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 compound attribute 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 compound attribute 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 compound attribute in the DB-MAIN repository. |
void |
deleteCompoundAttribute()
Deletes the compound attribute of the DB-MAIN repository represented by the current DBMCompoundAttribute instance. |
java.lang.Object[] |
disaggregate(boolean show)
Disaggregate the current compound attribute. |
DBMAttribute |
findAttribute(java.lang.String name)
Returns the attribute that have a specified name in the current compound attribute owner. |
DBMAttribute |
getFirstAttribute()
Returns the first attribute of the current compound attribute in the DB-MAIN repository. |
DBMCompoundAttribute |
getFirstAttributeCompoundAttribute()
Returns the first compound attribute attribute of the current compound attribute in the DB-MAIN repository. |
DBMSimpleAttribute |
getFirstAttributeSimpleAttribute()
Returns the first simple attribute attribute of the current compound attribute in the DB-MAIN repository. |
DBMAttribute |
getLastAttribute()
Returns the last attribute of the current compound attribute in the DB-MAIN repository. |
DBMCompoundAttribute |
getLastAttributeCompoundAttribute()
Returns the last compound attribute attribute of the current compound attribute in the DB-MAIN repository. |
DBMSimpleAttribute |
getLastAttributeSimpleAttribute()
Returns the last simple attribute attribute of the current compound attribute in the DB-MAIN repository. |
DBMAttribute |
getNextAttribute(DBMAttribute cur)
Returns the attribute (of the current compound attribute) that follows the attribute cur in the DB-MAIN repository. |
DBMCompoundAttribute |
getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current compound attribute) that follows the compound attribute cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current compound attribute) that follows the simple attribute cur in the DB-MAIN repository. |
DBMAttribute |
getPreviousAttribute(DBMAttribute cur)
Returns the attribute (of the current compound attribute) that precedes the attribute cur in the DB-MAIN repository. |
DBMCompoundAttribute |
getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current compound attribute) that precedes the compound attribute cur in the DB-MAIN repository. |
DBMSimpleAttribute |
getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current compound attribute) that precedes the simple attribute cur in the DB-MAIN repository. |
void |
removeAttribute()
Removes the list of attribute attached to the current compound attribute in the DB-MAIN repository. |
DBMCompoundAttribute |
unprefixAttribute(boolean show)
Unprefix the attribute names of the current compound attribute. |
| 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 DBMCompoundAttribute(int id,
long sysid)
id - the object identifier of a compound attribute.sysid - the system identifier of a compound attribute.public DBMCompoundAttribute(int id)
id - the object identifier of a compound attribute.| Method Detail |
|---|
public void deleteCompoundAttribute()
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 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 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 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 java.lang.Object[] disaggregate(boolean show)
show - indicate if the transformation dialogs must be displayed.
public DBMCompoundAttribute 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.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||