com.dbmain.jidbm
Interface DBMProcessingUnitOwner

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

public interface DBMProcessingUnitOwner

The DBMProcessingUnitOwner class represents processing unit owner objects of the DB-MAIN repository.

A processing unit owner can have several processing units.


Method Summary
 void addFirstProcessingUnit(DBMProcessingUnit cur)
          Adds a first processing unit (cur) to the current processing unit owner in the DB-MAIN repository.
 void addNextProcessingUnit(DBMProcessingUnit cur, DBMProcessingUnit prev)
          Adds a processing unit (cur) following the processing unit (prev) to the current processing unit owner in the DB-MAIN repository.
 DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig, DBMProcessingUnit prev)
          Copies a instance of processing unit attached to the current processing unit owner 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 processing unit owner 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 processing unit owner in the DB-MAIN repository.
 DBMProcessingUnit findProcessingUnit(java.lang.String name)
          Returns the processing unit that have a specified name in the current processing unit owner.
 DBMProcessingUnit getFirstProcessingUnit()
          Returns the first processing unit of the current processing unit owner in the DB-MAIN repository.
 DBMProcessingUnit getLastProcessingUnit()
          Returns the last processing unit of the current processing unit owner in the DB-MAIN repository.
 DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current processing unit owner) that follows the processing unit cur in the DB-MAIN repository.
 DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current processing unit owner) that precedes the processing unit cur in the DB-MAIN repository.
 void removeProcessingUnit()
          Removes the list of processing unit attached to the current processing unit owner in the DB-MAIN repository.
 

Method Detail

createProcessingUnit

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

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.

createUniqueProcessingUnit

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 processing unit 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.
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.

copyProcessingUnit

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

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.

getFirstProcessingUnit

DBMProcessingUnit getFirstProcessingUnit()
Returns the first processing unit of the current processing unit owner in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the first processing unit.

getLastProcessingUnit

DBMProcessingUnit getLastProcessingUnit()
Returns the last processing unit of the current processing unit owner in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the last processing unit.

getNextProcessingUnit

DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit (of the current processing unit owner) that follows the processing unit cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the next processing unit.

getPreviousProcessingUnit

DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit (of the current processing unit owner) that precedes the processing unit cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit.
Returns:
the DBMProcessingUnit instance representing the previous processing unit.

addFirstProcessingUnit

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

Parameters:
cur - the added processing unit.

addNextProcessingUnit

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

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

removeProcessingUnit

void removeProcessingUnit()
Removes the list of processing unit attached to the current processing unit owner in the DB-MAIN repository.


findProcessingUnit

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

Parameters:
name - the name of the processing unit that must be found.
Returns:
the DBMProcessingUnit instance named 'name'.