com.dbmain.jidbm
Interface DBMAttributeOwner

All Known Implementing Classes:
DBMCompoundAttribute, DBMEntityRelationshipType, DBMEntityType, DBMRelationshipType

public interface DBMAttributeOwner

The DBMAttributeOwner class represents attribute owner objects of the DB-MAIN repository.

A attribute owner can have several attributes. The attribute instances fall into 2 classes: simple attribute and compound attribute.


Method Summary
 void addFirstAttribute(DBMAttribute cur)
          Adds a first attribute (cur) to the current attribute owner in the DB-MAIN repository.
 void addNextAttribute(DBMAttribute cur, DBMAttribute prev)
          Adds a attribute (cur) following the attribute (prev) to the current attribute owner in the DB-MAIN repository.
 DBMAttribute copyAttribute(DBMAttribute orig, DBMAttribute prev)
          Copies a instance of attribute attached to the current attribute owner 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 attribute owner 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 attribute owner 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 attribute owner 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 attribute owner in the DB-MAIN repository.
 DBMAttribute findAttribute(java.lang.String name)
          Returns the attribute that have a specified name in the current attribute owner.
 DBMAttribute getFirstAttribute()
          Returns the first attribute of the current attribute owner in the DB-MAIN repository.
 DBMCompoundAttribute getFirstAttributeCompoundAttribute()
          Returns the first compound attribute attribute of the current attribute owner in the DB-MAIN repository.
 DBMSimpleAttribute getFirstAttributeSimpleAttribute()
          Returns the first simple attribute attribute of the current attribute owner in the DB-MAIN repository.
 DBMAttribute getLastAttribute()
          Returns the last attribute of the current attribute owner in the DB-MAIN repository.
 DBMCompoundAttribute getLastAttributeCompoundAttribute()
          Returns the last compound attribute attribute of the current attribute owner in the DB-MAIN repository.
 DBMSimpleAttribute getLastAttributeSimpleAttribute()
          Returns the last simple attribute attribute of the current attribute owner in the DB-MAIN repository.
 DBMAttribute getNextAttribute(DBMAttribute cur)
          Returns the attribute (of the current attribute owner) that follows the attribute cur in the DB-MAIN repository.
 DBMCompoundAttribute getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute attribute (of the current attribute owner) that follows the compound attribute cur in the DB-MAIN repository.
 DBMSimpleAttribute getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute attribute (of the current attribute owner) that follows the simple attribute cur in the DB-MAIN repository.
 DBMAttribute getPreviousAttribute(DBMAttribute cur)
          Returns the attribute (of the current attribute owner) that precedes the attribute cur in the DB-MAIN repository.
 DBMCompoundAttribute getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute attribute (of the current attribute owner) that precedes the compound attribute cur in the DB-MAIN repository.
 DBMSimpleAttribute getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute attribute (of the current attribute owner) that precedes the simple attribute cur in the DB-MAIN repository.
 void removeAttribute()
          Removes the list of attribute attached to the current attribute owner in the DB-MAIN repository.
 DBMAttributeOwner unprefixAttribute(boolean show)
          Unprefix the attribute names of the current owner.
 

Method Detail

createSimpleAttribute

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 attribute owner in the DB-MAIN repository.

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

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 attribute owner in the DB-MAIN repository.

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.

createUniqueSimpleAttribute

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 attribute owner in the DB-MAIN repository. This method insures that the name of the created object is unique in the repository (suffix must be added).

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

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 attribute owner in the DB-MAIN repository. This method insures that the name of the created object is unique in the repository (suffix must be added).

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.

copyAttribute

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

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.

getFirstAttribute

DBMAttribute getFirstAttribute()
Returns the first attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMAttribute instance representing the first attribute.

getLastAttribute

DBMAttribute getLastAttribute()
Returns the last attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMAttribute instance representing the last attribute.

getNextAttribute

DBMAttribute getNextAttribute(DBMAttribute cur)
Returns the attribute (of the current attribute owner) that follows the attribute cur in the DB-MAIN repository.

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

getPreviousAttribute

DBMAttribute getPreviousAttribute(DBMAttribute cur)
Returns the attribute (of the current attribute owner) that precedes the attribute cur in the DB-MAIN repository.

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

getFirstAttributeSimpleAttribute

DBMSimpleAttribute getFirstAttributeSimpleAttribute()
Returns the first simple attribute attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the first simple attribute.

getLastAttributeSimpleAttribute

DBMSimpleAttribute getLastAttributeSimpleAttribute()
Returns the last simple attribute attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the last simple attribute.

getNextAttributeSimpleAttribute

DBMSimpleAttribute getNextAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current attribute owner) 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.

getPreviousAttributeSimpleAttribute

DBMSimpleAttribute getPreviousAttributeSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute attribute (of the current attribute owner) 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.

getFirstAttributeCompoundAttribute

DBMCompoundAttribute getFirstAttributeCompoundAttribute()
Returns the first compound attribute attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the first compound attribute.

getLastAttributeCompoundAttribute

DBMCompoundAttribute getLastAttributeCompoundAttribute()
Returns the last compound attribute attribute of the current attribute owner in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the last compound attribute.

getNextAttributeCompoundAttribute

DBMCompoundAttribute getNextAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current attribute owner) 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.

getPreviousAttributeCompoundAttribute

DBMCompoundAttribute getPreviousAttributeCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute attribute (of the current attribute owner) 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.

addFirstAttribute

void addFirstAttribute(DBMAttribute cur)
Adds a first attribute (cur) to the current attribute owner in the DB-MAIN repository.

Parameters:
cur - the added attribute.

addNextAttribute

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

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

removeAttribute

void removeAttribute()
Removes the list of attribute attached to the current attribute owner in the DB-MAIN repository.


unprefixAttribute

DBMAttributeOwner unprefixAttribute(boolean show)
Unprefix the attribute names of the current owner.

Parameters:
show - indicate if the transformation dialogs must be displayed.
Returns:
the DBMAttributeOwner instance representing the owner.

findAttribute

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

Parameters:
name - the name of the attribute that must be found.
Returns:
the DBMAttribute instance named 'name'.