com.dbmain.jidbm
Class DBMSchema

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMProduct
              extended by com.dbmain.jidbm.DBMSchema
All Implemented Interfaces:
DBMProcessingUnitOwner

public class DBMSchema
extends DBMProduct
implements DBMProcessingUnitOwner

The DBMSchema class represents schema objects of the DB-MAIN repository.

A schema can have several user views, note relations, processing units, data objects and collections. The data object instances fall into 8 classes: consumption, state, resource, processing unit, relationship type, entity type, simple attribute and compound attribute.


Field Summary
static char ERASCHEMA
          Constant of field type: Entity-Relationship schema.
static char UMLACTIVITY
          Constant of field type: UML activity diagram.
static char UMLCLASSSCHEMA
          Constant of field type: UML class diagram.
static char UMLUSECASE
          Constant of field type: UML use case diagram.
 
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
DBMSchema(int id)
          Creates a new instance of the DBMSchema class representing the schema identified by id and the current project in DB-MAIN.
DBMSchema(int id, long sysid)
          Creates a new instance of the DBMSchema class representing the schema identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstCollection(DBMCollection cur)
          Adds a first collection (cur) to the current schema in the DB-MAIN repository.
 void addFirstDataObject(DBMDataObject cur)
          Adds a first data object (cur) to the current schema in the DB-MAIN repository.
 void addFirstNoteRelation(DBMNoteRelation cur)
          Adds a first note relation (cur) to the current schema in the DB-MAIN repository.
 void addFirstProcessingUnit(DBMProcessingUnit cur)
          Adds a first processing unit (cur) to the current schema in the DB-MAIN repository.
 void addFirstUserView(DBMUserView cur)
          Adds a first user view (cur) to the current schema in the DB-MAIN repository.
 void addNextCollection(DBMCollection cur, DBMCollection prev)
          Adds a collection (cur) following the collection (prev) to the current schema in the DB-MAIN repository.
 void addNextDataObject(DBMDataObject cur, DBMDataObject prev)
          Adds a data object (cur) following the data object (prev) to the current schema in the DB-MAIN repository.
 void addNextNoteRelation(DBMNoteRelation cur, DBMNoteRelation prev)
          Adds a note relation (cur) following the note relation (prev) to the current schema in the DB-MAIN repository.
 void addNextProcessingUnit(DBMProcessingUnit cur, DBMProcessingUnit prev)
          Adds a processing unit (cur) following the processing unit (prev) to the current schema in the DB-MAIN repository.
 void addNextUserView(DBMUserView cur, DBMUserView prev)
          Adds a user view (cur) following the user view (prev) to the current schema in the DB-MAIN repository.
 DBMCollection copyCollection(DBMCollection orig)
          Copies a instance of collection attached to the current schema in the DB-MAIN repository.
 DBMConsumption copyConsumption(DBMConsumption orig)
          Copies a instance of consumption attached to the current schema in the DB-MAIN repository.
 DBMEntityType copyEntityType(DBMEntityType orig)
          Copies a instance of entity type attached to the current schema in the DB-MAIN repository.
 DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig, DBMProcessingUnit prev)
          Copies a instance of processing unit attached to the current schema in the DB-MAIN repository.
 DBMRelationshipType copyRelationshipType(DBMRelationshipType orig)
          Copies a instance of relationship type attached to the current schema in the DB-MAIN repository.
 DBMResource copyResource(DBMResource orig)
          Copies a instance of resource attached to the current schema in the DB-MAIN repository.
 DBMSchema copySchema(java.lang.String name, java.lang.String version, java.lang.String processname)
          Copies a instance of current schema in the DB-MAIN repository.
 DBMCollection createCollection(java.lang.String name, java.lang.String short_name)
          Creates a new instance of collection attached to the current schema in the DB-MAIN repository.
 DBMConsumption createConsumption(java.lang.String name, java.lang.String short_name)
          Creates a new instance of consumption attached to the current schema in the DB-MAIN repository.
 DBMEntityType createEntityType(java.lang.String name, java.lang.String short_name)
          Creates a new instance of entity type attached to the current schema 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 schema in the DB-MAIN repository.
 DBMRelationshipType createRelationshipType(java.lang.String name, java.lang.String short_name)
          Creates a new instance of relationship type attached to the current schema in the DB-MAIN repository.
 DBMResource createResource(java.lang.String name, java.lang.String short_name, char type)
          Creates a new instance of resource attached to the current schema in the DB-MAIN repository.
 DBMState createState(java.lang.String name, java.lang.String short_name, DBMGenericObject generic_object)
          Creates a new instance of state attached to the current schema in the DB-MAIN repository.
 DBMCollection createUniqueCollection(java.lang.String name, java.lang.String short_name)
          Creates a new unique instance of collection attached to the current schema in the DB-MAIN repository.
 DBMConsumption createUniqueConsumption(java.lang.String name, java.lang.String short_name)
          Creates a new unique instance of consumption attached to the current schema in the DB-MAIN repository.
 DBMEntityType createUniqueEntityType(java.lang.String name, java.lang.String short_name)
          Creates a new unique instance of entity type attached to the current schema 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 schema in the DB-MAIN repository.
 DBMRelationshipType createUniqueRelationshipType(java.lang.String name, java.lang.String short_name)
          Creates a new unique instance of relationship type attached to the current schema in the DB-MAIN repository.
 DBMResource createUniqueResource(java.lang.String name, java.lang.String short_name, char type)
          Creates a new unique instance of resource attached to the current schema in the DB-MAIN repository.
 DBMState createUniqueState(java.lang.String name, java.lang.String short_name, DBMGenericObject generic_object)
          Creates a new unique instance of state attached to the current schema in the DB-MAIN repository.
 DBMUserView createUniqueUserView(java.lang.String name, short type, short zoom, short reduce, int xgrid, int ygrid, short font_size, java.lang.String font_name, short text_font_size, java.lang.String text_font_name, int markplan, DBMUserView prev)
          Creates a new unique instance of user view attached to the current schema in the DB-MAIN repository.
 DBMUserView createUserView(java.lang.String name, short type, short zoom, short reduce, int xgrid, int ygrid, short font_size, java.lang.String font_name, short text_font_size, java.lang.String text_font_name, int markplan, DBMUserView prev)
          Creates a new instance of user view attached to the current schema in the DB-MAIN repository.
 void deleteSchema()
          Deletes the schema of the DB-MAIN repository represented by the current DBMSchema instance.
 int extractIms(java.lang.String dbdFile, java.lang.String logFile)
          Extract an IMS DBD into "this"
 int extractPl1(java.lang.String pl1File, java.lang.String logFile)
          Extract a PL/1 variable declaration into "this"
 DBMEntityType findEntityType(java.lang.String name)
          Returns the entity type that have a specified name in the current schema.
 DBMProcessingUnit findProcessingUnit(java.lang.String name)
          Returns the processing unit that have a specified name in the current schema.
 DBMRelationshipType findRelationshipType(java.lang.String name)
          Returns the relationship type that have a specified name in the current schema.
 DBMSchema generateSQL(java.lang.String filename, int type, java.lang.String processname)
          Generates the SQL creation script file of current schema.
 DBMCollection getFirstCollection()
          Returns the first collection of the current schema in the DB-MAIN repository.
 DBMDataObject getFirstDataObject()
          Returns the first data object of the current schema in the DB-MAIN repository.
 DBMCompoundAttribute getFirstDataObjectCompoundAttribute()
          Returns the first compound attribute data object of the current schema in the DB-MAIN repository.
 DBMConsumption getFirstDataObjectConsumption()
          Returns the first consumption data object of the current schema in the DB-MAIN repository.
 DBMEntityType getFirstDataObjectEntityType()
          Returns the first entity type data object of the current schema in the DB-MAIN repository.
 DBMProcessingUnit getFirstDataObjectProcessingUnit()
          Returns the first processing unit data object of the current schema in the DB-MAIN repository.
 DBMRelationshipType getFirstDataObjectRelationshipType()
          Returns the first relationship type data object of the current schema in the DB-MAIN repository.
 DBMResource getFirstDataObjectResource()
          Returns the first resource data object of the current schema in the DB-MAIN repository.
 DBMSimpleAttribute getFirstDataObjectSimpleAttribute()
          Returns the first simple attribute data object of the current schema in the DB-MAIN repository.
 DBMState getFirstDataObjectState()
          Returns the first state data object of the current schema in the DB-MAIN repository.
 DBMNoteRelation getFirstNoteRelation()
          Returns the first note relation of the current schema in the DB-MAIN repository.
 DBMProcessingUnit getFirstProcessingUnit()
          Returns the first processing unit of the current schema in the DB-MAIN repository.
 DBMUserView getFirstUserView()
          Returns the first user view of the current schema in the DB-MAIN repository.
 DBMCollection getLastCollection()
          Returns the last collection of the current schema in the DB-MAIN repository.
 DBMDataObject getLastDataObject()
          Returns the last data object of the current schema in the DB-MAIN repository.
 DBMCompoundAttribute getLastDataObjectCompoundAttribute()
          Returns the last compound attribute data object of the current schema in the DB-MAIN repository.
 DBMConsumption getLastDataObjectConsumption()
          Returns the last consumption data object of the current schema in the DB-MAIN repository.
 DBMEntityType getLastDataObjectEntityType()
          Returns the last entity type data object of the current schema in the DB-MAIN repository.
 DBMProcessingUnit getLastDataObjectProcessingUnit()
          Returns the last processing unit data object of the current schema in the DB-MAIN repository.
 DBMRelationshipType getLastDataObjectRelationshipType()
          Returns the last relationship type data object of the current schema in the DB-MAIN repository.
 DBMResource getLastDataObjectResource()
          Returns the last resource data object of the current schema in the DB-MAIN repository.
 DBMSimpleAttribute getLastDataObjectSimpleAttribute()
          Returns the last simple attribute data object of the current schema in the DB-MAIN repository.
 DBMState getLastDataObjectState()
          Returns the last state data object of the current schema in the DB-MAIN repository.
 DBMNoteRelation getLastNoteRelation()
          Returns the last note relation of the current schema in the DB-MAIN repository.
 DBMProcessingUnit getLastProcessingUnit()
          Returns the last processing unit of the current schema in the DB-MAIN repository.
 DBMUserView getLastUserView()
          Returns the last user view of the current schema in the DB-MAIN repository.
 DBMCollection getNextCollection(DBMCollection cur)
          Returns the collection (of the current schema) that follows the collection cur in the DB-MAIN repository.
 DBMDataObject getNextDataObject(DBMDataObject cur)
          Returns the data object (of the current schema) that follows the data object cur in the DB-MAIN repository.
 DBMCompoundAttribute getNextDataObjectCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute data object (of the current schema) that follows the compound attribute cur in the DB-MAIN repository.
 DBMConsumption getNextDataObjectConsumption(DBMConsumption cur)
          Returns the consumption data object (of the current schema) that follows the consumption cur in the DB-MAIN repository.
 DBMEntityType getNextDataObjectEntityType(DBMEntityType cur)
          Returns the entity type data object (of the current schema) that follows the entity type cur in the DB-MAIN repository.
 DBMProcessingUnit getNextDataObjectProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit data object (of the current schema) that follows the processing unit cur in the DB-MAIN repository.
 DBMRelationshipType getNextDataObjectRelationshipType(DBMRelationshipType cur)
          Returns the relationship type data object (of the current schema) that follows the relationship type cur in the DB-MAIN repository.
 DBMResource getNextDataObjectResource(DBMResource cur)
          Returns the resource data object (of the current schema) that follows the resource cur in the DB-MAIN repository.
 DBMSimpleAttribute getNextDataObjectSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute data object (of the current schema) that follows the simple attribute cur in the DB-MAIN repository.
 DBMState getNextDataObjectState(DBMState cur)
          Returns the state data object (of the current schema) that follows the state cur in the DB-MAIN repository.
 DBMNoteRelation getNextNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current schema) that follows the note relation cur in the DB-MAIN repository.
 DBMProcessingUnit getNextProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current schema) that follows the processing unit cur in the DB-MAIN repository.
 DBMUserView getNextUserView(DBMUserView cur)
          Returns the user view (of the current schema) that follows the user view cur in the DB-MAIN repository.
 DBMCollection getPreviousCollection(DBMCollection cur)
          Returns the collection (of the current schema) that precedes the collection cur in the DB-MAIN repository.
 DBMDataObject getPreviousDataObject(DBMDataObject cur)
          Returns the data object (of the current schema) that precedes the data object cur in the DB-MAIN repository.
 DBMCompoundAttribute getPreviousDataObjectCompoundAttribute(DBMCompoundAttribute cur)
          Returns the compound attribute data object (of the current schema) that precedes the compound attribute cur in the DB-MAIN repository.
 DBMConsumption getPreviousDataObjectConsumption(DBMConsumption cur)
          Returns the consumption data object (of the current schema) that precedes the consumption cur in the DB-MAIN repository.
 DBMEntityType getPreviousDataObjectEntityType(DBMEntityType cur)
          Returns the entity type data object (of the current schema) that precedes the entity type cur in the DB-MAIN repository.
 DBMProcessingUnit getPreviousDataObjectProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit data object (of the current schema) that precedes the processing unit cur in the DB-MAIN repository.
 DBMRelationshipType getPreviousDataObjectRelationshipType(DBMRelationshipType cur)
          Returns the relationship type data object (of the current schema) that precedes the relationship type cur in the DB-MAIN repository.
 DBMResource getPreviousDataObjectResource(DBMResource cur)
          Returns the resource data object (of the current schema) that precedes the resource cur in the DB-MAIN repository.
 DBMSimpleAttribute getPreviousDataObjectSimpleAttribute(DBMSimpleAttribute cur)
          Returns the simple attribute data object (of the current schema) that precedes the simple attribute cur in the DB-MAIN repository.
 DBMState getPreviousDataObjectState(DBMState cur)
          Returns the state data object (of the current schema) that precedes the state cur in the DB-MAIN repository.
 DBMNoteRelation getPreviousNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current schema) that precedes the note relation cur in the DB-MAIN repository.
 DBMProcessingUnit getPreviousProcessingUnit(DBMProcessingUnit cur)
          Returns the processing unit (of the current schema) that precedes the processing unit cur in the DB-MAIN repository.
 DBMUserView getPreviousUserView(DBMUserView cur)
          Returns the user view (of the current schema) that precedes the user view cur in the DB-MAIN repository.
 java.util.Vector<DBMGenericObject> getSelectedObjects()
          Returns the list of selected object in the current schema.
 java.util.Vector<DBMGenericObject> getSelectedObjects(long selection)
          Returns the list of selected object in the current schema following the specified selection criteria.
 char getType()
          Returns the type of the current schema.
 java.lang.String getTypeName()
          Returns the type constant name of the current schema.
 int getUpdated()
          Returns the updated value of the current schema that indicates if the schema window must be refresh.
 void lockUpdated()
          Increments the updated value of the current schema.
 void removeCollection()
          Removes the list of collection attached to the current schema in the DB-MAIN repository.
 void removeDataObject()
          Removes the list of data object attached to the current schema in the DB-MAIN repository.
 void removeNoteRelation()
          Removes the list of note relation attached to the current schema in the DB-MAIN repository.
 void removeProcessingUnit()
          Removes the list of processing unit attached to the current schema in the DB-MAIN repository.
 void removeUserView()
          Removes the list of user view attached to the current schema in the DB-MAIN repository.
 void setType(char val)
          Updates the value of type in the current schema in the DB-MAIN repository.
 void unlockUpdated()
          Decrements the updated value of the current schema.
 
Methods inherited from class com.dbmain.jidbm.DBMProduct
addFirstFromConnection, addFirstToConnection, addNextFromConnection, addNextToConnection, createConnection, deleteProduct, getCreationDate, getFirstFromConnection, getFirstProductSet, getFirstToConnection, getLastFromConnection, getLastProductSet, getLastToConnection, getLastUpdate, getNextFromConnection, getNextProductSet, getNextToConnection, getPreviousFromConnection, getPreviousProductSet, getPreviousToConnection, getProject, getVersion, removeFromConnection, removeProductSet, removeProductSet, removeProject, removeToConnection, setCreationDate, setLastUpdate, setVersion, toString
 
Methods inherited from class com.dbmain.jidbm.DBMConcreteObject
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstState, addFirstUserObject, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstState, getFirstUserObject, getFlag, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, 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, 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
 

Field Detail

ERASCHEMA

public static final char ERASCHEMA
Constant of field type: Entity-Relationship schema.

See Also:
Constant Field Values

UMLACTIVITY

public static final char UMLACTIVITY
Constant of field type: UML activity diagram.

See Also:
Constant Field Values

UMLCLASSSCHEMA

public static final char UMLCLASSSCHEMA
Constant of field type: UML class diagram.

See Also:
Constant Field Values

UMLUSECASE

public static final char UMLUSECASE
Constant of field type: UML use case diagram.

See Also:
Constant Field Values
Constructor Detail

DBMSchema

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

Parameters:
id - the object identifier of a schema.
sysid - the system identifier of a schema.

DBMSchema

public DBMSchema(int id)
Creates a new instance of the DBMSchema class representing the schema identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a schema.
Method Detail

getType

public char getType()
Returns the type of the current schema.

Returns:
the char value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current schema.

Returns:
the string representation of the field type.

setType

public void setType(char val)
Updates the value of type in the current schema in the DB-MAIN repository.

Parameters:
val - the new char value of the field Type.

deleteSchema

public void deleteSchema()
Deletes the schema of the DB-MAIN repository represented by the current DBMSchema instance.


createUserView

public DBMUserView createUserView(java.lang.String name,
                                  short type,
                                  short zoom,
                                  short reduce,
                                  int xgrid,
                                  int ygrid,
                                  short font_size,
                                  java.lang.String font_name,
                                  short text_font_size,
                                  java.lang.String text_font_name,
                                  int markplan,
                                  DBMUserView prev)
Creates a new instance of user view attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
type - the value of the field type.
zoom - the value of the field zoom.
reduce - the value of the field reduce.
xgrid - the value of the field x grid.
ygrid - the value of the field y grid.
font_size - the value of the field font size.
font_name - the value of the field font name.
text_font_size - the value of the field text font size.
text_font_name - the value of the field text font name.
markplan - the value of the field highlighting plan.
prev - the user view after which the created object is inserted.
Returns:
the DBMUserView instance representing the new user view.

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 schema 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.

createConsumption

public DBMConsumption createConsumption(java.lang.String name,
                                        java.lang.String short_name)
Creates a new instance of consumption attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
short_name - the value of the field short name.
Returns:
the DBMConsumption instance representing the new consumption.

createState

public DBMState createState(java.lang.String name,
                            java.lang.String short_name,
                            DBMGenericObject generic_object)
Creates a new instance of state attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
short_name - the value of the field short name.
generic_object - the generic object linked to the created object.
Returns:
the DBMState instance representing the new state.

createResource

public DBMResource createResource(java.lang.String name,
                                  java.lang.String short_name,
                                  char type)
Creates a new instance of resource attached to the current schema 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.
Returns:
the DBMResource instance representing the new resource.

createRelationshipType

public DBMRelationshipType createRelationshipType(java.lang.String name,
                                                  java.lang.String short_name)
Creates a new instance of relationship type attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
short_name - the value of the field short name.
Returns:
the DBMRelationshipType instance representing the new relationship type.

createEntityType

public DBMEntityType createEntityType(java.lang.String name,
                                      java.lang.String short_name)
Creates a new instance of entity type attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
short_name - the value of the field short name.
Returns:
the DBMEntityType instance representing the new entity type.

createCollection

public DBMCollection createCollection(java.lang.String name,
                                      java.lang.String short_name)
Creates a new instance of collection attached to the current schema in the DB-MAIN repository.

Parameters:
name - the value of the field name.
short_name - the value of the field short name.
Returns:
the DBMCollection instance representing the new collection.

createUniqueUserView

public DBMUserView createUniqueUserView(java.lang.String name,
                                        short type,
                                        short zoom,
                                        short reduce,
                                        int xgrid,
                                        int ygrid,
                                        short font_size,
                                        java.lang.String font_name,
                                        short text_font_size,
                                        java.lang.String text_font_name,
                                        int markplan,
                                        DBMUserView prev)
Creates a new unique instance of user view attached to the current schema 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.
type - the value of the field type.
zoom - the value of the field zoom.
reduce - the value of the field reduce.
xgrid - the value of the field x grid.
ygrid - the value of the field y grid.
font_size - the value of the field font size.
font_name - the value of the field font name.
text_font_size - the value of the field text font size.
text_font_name - the value of the field text font name.
markplan - the value of the field highlighting plan.
prev - the user view after which the created object is inserted.
Returns:
the DBMUserView instance representing the new unique user view.

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 schema 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.

createUniqueConsumption

public DBMConsumption createUniqueConsumption(java.lang.String name,
                                              java.lang.String short_name)
Creates a new unique instance of consumption attached to the current schema 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.
Returns:
the DBMConsumption instance representing the new unique consumption.

createUniqueState

public DBMState createUniqueState(java.lang.String name,
                                  java.lang.String short_name,
                                  DBMGenericObject generic_object)
Creates a new unique instance of state attached to the current schema 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.
generic_object - the generic object linked to the created object.
Returns:
the DBMState instance representing the new unique state.

createUniqueResource

public DBMResource createUniqueResource(java.lang.String name,
                                        java.lang.String short_name,
                                        char type)
Creates a new unique instance of resource attached to the current schema 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.
Returns:
the DBMResource instance representing the new unique resource.

createUniqueRelationshipType

public DBMRelationshipType createUniqueRelationshipType(java.lang.String name,
                                                        java.lang.String short_name)
Creates a new unique instance of relationship type attached to the current schema 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.
Returns:
the DBMRelationshipType instance representing the new unique relationship type.

createUniqueEntityType

public DBMEntityType createUniqueEntityType(java.lang.String name,
                                            java.lang.String short_name)
Creates a new unique instance of entity type attached to the current schema 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.
Returns:
the DBMEntityType instance representing the new unique entity type.

createUniqueCollection

public DBMCollection createUniqueCollection(java.lang.String name,
                                            java.lang.String short_name)
Creates a new unique instance of collection attached to the current schema 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.
Returns:
the DBMCollection instance representing the new unique collection.

copyProcessingUnit

public DBMProcessingUnit copyProcessingUnit(DBMProcessingUnit orig,
                                            DBMProcessingUnit prev)
Copies a instance of processing unit attached to the current schema 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.

copyConsumption

public DBMConsumption copyConsumption(DBMConsumption orig)
Copies a instance of consumption attached to the current schema in the DB-MAIN repository.

Parameters:
orig - the consumption to be copied.
Returns:
the DBMConsumption instance representing the copied consumption.

copyResource

public DBMResource copyResource(DBMResource orig)
Copies a instance of resource attached to the current schema in the DB-MAIN repository.

Parameters:
orig - the resource to be copied.
Returns:
the DBMResource instance representing the copied resource.

copyRelationshipType

public DBMRelationshipType copyRelationshipType(DBMRelationshipType orig)
Copies a instance of relationship type attached to the current schema in the DB-MAIN repository.

Parameters:
orig - the relationship type to be copied.
Returns:
the DBMRelationshipType instance representing the copied relationship type.

copyEntityType

public DBMEntityType copyEntityType(DBMEntityType orig)
Copies a instance of entity type attached to the current schema in the DB-MAIN repository.

Parameters:
orig - the entity type to be copied.
Returns:
the DBMEntityType instance representing the copied entity type.

copyCollection

public DBMCollection copyCollection(DBMCollection orig)
Copies a instance of collection attached to the current schema in the DB-MAIN repository.

Parameters:
orig - the collection to be copied.
Returns:
the DBMCollection instance representing the copied collection.

extractIms

public int extractIms(java.lang.String dbdFile,
                      java.lang.String logFile)
Extract an IMS DBD into "this"

Parameters:
dbdFile - dbdFile the DBD file
logFile - the file into which the extractor will write its messages (messages will be append at the end of the file
Returns:
0 if the extraction succeed, -1 if the license does not allow to execute the extractor, -2 if the library could not be loaded, -3 if their is a parsing error

extractPl1

public int extractPl1(java.lang.String pl1File,
                      java.lang.String logFile)
Extract a PL/1 variable declaration into "this"

Parameters:
pl1File - dbdFile the DBD file
logFile - the file into which the extractor will write its messages (messages will be append at the end of the file
Returns:
0 if the extraction succeed, -1 if the license does not allow to execute the extractor, -2 if the library could not be loaded, -3 if their is a parsing error

getFirstUserView

public DBMUserView getFirstUserView()
Returns the first user view of the current schema in the DB-MAIN repository.

Returns:
the DBMUserView instance representing the first user view.

getLastUserView

public DBMUserView getLastUserView()
Returns the last user view of the current schema in the DB-MAIN repository.

Returns:
the DBMUserView instance representing the last user view.

getNextUserView

public DBMUserView getNextUserView(DBMUserView cur)
Returns the user view (of the current schema) that follows the user view cur in the DB-MAIN repository.

Parameters:
cur - the current user view.
Returns:
the DBMUserView instance representing the next user view.

getPreviousUserView

public DBMUserView getPreviousUserView(DBMUserView cur)
Returns the user view (of the current schema) that precedes the user view cur in the DB-MAIN repository.

Parameters:
cur - the current user view.
Returns:
the DBMUserView instance representing the previous user view.

addFirstUserView

public void addFirstUserView(DBMUserView cur)
Adds a first user view (cur) to the current schema in the DB-MAIN repository.

Parameters:
cur - the added user view.

addNextUserView

public void addNextUserView(DBMUserView cur,
                            DBMUserView prev)
Adds a user view (cur) following the user view (prev) to the current schema in the DB-MAIN repository.

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

removeUserView

public void removeUserView()
Removes the list of user view attached to the current schema in the DB-MAIN repository.


getFirstNoteRelation

public DBMNoteRelation getFirstNoteRelation()
Returns the first note relation of the current schema in the DB-MAIN repository.

Overrides:
getFirstNoteRelation in class DBMGenericObject
Returns:
the DBMNoteRelation instance representing the first note relation.

getLastNoteRelation

public DBMNoteRelation getLastNoteRelation()
Returns the last note relation of the current schema in the DB-MAIN repository.

Overrides:
getLastNoteRelation in class DBMGenericObject
Returns:
the DBMNoteRelation instance representing the last note relation.

getNextNoteRelation

public DBMNoteRelation getNextNoteRelation(DBMNoteRelation cur)
Returns the note relation (of the current schema) that follows the note relation cur in the DB-MAIN repository.

Overrides:
getNextNoteRelation in class DBMGenericObject
Parameters:
cur - the current note relation.
Returns:
the DBMNoteRelation instance representing the next note relation.

getPreviousNoteRelation

public DBMNoteRelation getPreviousNoteRelation(DBMNoteRelation cur)
Returns the note relation (of the current schema) that precedes the note relation cur in the DB-MAIN repository.

Overrides:
getPreviousNoteRelation in class DBMGenericObject
Parameters:
cur - the current note relation.
Returns:
the DBMNoteRelation instance representing the previous note relation.

addFirstNoteRelation

public void addFirstNoteRelation(DBMNoteRelation cur)
Adds a first note relation (cur) to the current schema in the DB-MAIN repository.

Overrides:
addFirstNoteRelation in class DBMGenericObject
Parameters:
cur - the added note relation.

addNextNoteRelation

public void addNextNoteRelation(DBMNoteRelation cur,
                                DBMNoteRelation prev)
Adds a note relation (cur) following the note relation (prev) to the current schema in the DB-MAIN repository.

Overrides:
addNextNoteRelation in class DBMGenericObject
Parameters:
cur - the added note relation.
prev - the note relation after which the note relation cur is inserted.

removeNoteRelation

public void removeNoteRelation()
Removes the list of note relation attached to the current schema in the DB-MAIN repository.

Overrides:
removeNoteRelation in class DBMGenericObject

getFirstProcessingUnit

public DBMProcessingUnit getFirstProcessingUnit()
Returns the first processing unit of the current schema 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 schema 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 schema) 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 schema) 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 schema 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 schema 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 schema in the DB-MAIN repository.

Specified by:
removeProcessingUnit in interface DBMProcessingUnitOwner

getFirstDataObject

public DBMDataObject getFirstDataObject()
Returns the first data object of the current schema in the DB-MAIN repository.

Returns:
the DBMDataObject instance representing the first data object.

getLastDataObject

public DBMDataObject getLastDataObject()
Returns the last data object of the current schema in the DB-MAIN repository.

Returns:
the DBMDataObject instance representing the last data object.

getNextDataObject

public DBMDataObject getNextDataObject(DBMDataObject cur)
Returns the data object (of the current schema) that follows the data object cur in the DB-MAIN repository.

Parameters:
cur - the current data object.
Returns:
the DBMDataObject instance representing the next data object.

getPreviousDataObject

public DBMDataObject getPreviousDataObject(DBMDataObject cur)
Returns the data object (of the current schema) that precedes the data object cur in the DB-MAIN repository.

Parameters:
cur - the current data object.
Returns:
the DBMDataObject instance representing the previous data object.

getFirstDataObjectConsumption

public DBMConsumption getFirstDataObjectConsumption()
Returns the first consumption data object of the current schema in the DB-MAIN repository.

Returns:
the DBMConsumption instance representing the first consumption.

getLastDataObjectConsumption

public DBMConsumption getLastDataObjectConsumption()
Returns the last consumption data object of the current schema in the DB-MAIN repository.

Returns:
the DBMConsumption instance representing the last consumption.

getNextDataObjectConsumption

public DBMConsumption getNextDataObjectConsumption(DBMConsumption cur)
Returns the consumption data object (of the current schema) that follows the consumption cur in the DB-MAIN repository.

Parameters:
cur - the current consumption.
Returns:
the DBMConsumption instance representing the next consumption.

getPreviousDataObjectConsumption

public DBMConsumption getPreviousDataObjectConsumption(DBMConsumption cur)
Returns the consumption data object (of the current schema) that precedes the consumption cur in the DB-MAIN repository.

Parameters:
cur - the current consumption.
Returns:
the DBMConsumption instance representing the previous consumption.

getFirstDataObjectState

public DBMState getFirstDataObjectState()
Returns the first state data object of the current schema in the DB-MAIN repository.

Returns:
the DBMState instance representing the first state.

getLastDataObjectState

public DBMState getLastDataObjectState()
Returns the last state data object of the current schema in the DB-MAIN repository.

Returns:
the DBMState instance representing the last state.

getNextDataObjectState

public DBMState getNextDataObjectState(DBMState cur)
Returns the state data object (of the current schema) that follows the state cur in the DB-MAIN repository.

Parameters:
cur - the current state.
Returns:
the DBMState instance representing the next state.

getPreviousDataObjectState

public DBMState getPreviousDataObjectState(DBMState cur)
Returns the state data object (of the current schema) that precedes the state cur in the DB-MAIN repository.

Parameters:
cur - the current state.
Returns:
the DBMState instance representing the previous state.

getFirstDataObjectResource

public DBMResource getFirstDataObjectResource()
Returns the first resource data object of the current schema in the DB-MAIN repository.

Returns:
the DBMResource instance representing the first resource.

getLastDataObjectResource

public DBMResource getLastDataObjectResource()
Returns the last resource data object of the current schema in the DB-MAIN repository.

Returns:
the DBMResource instance representing the last resource.

getNextDataObjectResource

public DBMResource getNextDataObjectResource(DBMResource cur)
Returns the resource data object (of the current schema) that follows the resource cur in the DB-MAIN repository.

Parameters:
cur - the current resource.
Returns:
the DBMResource instance representing the next resource.

getPreviousDataObjectResource

public DBMResource getPreviousDataObjectResource(DBMResource cur)
Returns the resource data object (of the current schema) that precedes the resource cur in the DB-MAIN repository.

Parameters:
cur - the current resource.
Returns:
the DBMResource instance representing the previous resource.

getFirstDataObjectProcessingUnit

public DBMProcessingUnit getFirstDataObjectProcessingUnit()
Returns the first processing unit data object of the current schema in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the first processing unit.

getLastDataObjectProcessingUnit

public DBMProcessingUnit getLastDataObjectProcessingUnit()
Returns the last processing unit data object of the current schema in the DB-MAIN repository.

Returns:
the DBMProcessingUnit instance representing the last processing unit.

getNextDataObjectProcessingUnit

public DBMProcessingUnit getNextDataObjectProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit data object (of the current schema) 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.

getPreviousDataObjectProcessingUnit

public DBMProcessingUnit getPreviousDataObjectProcessingUnit(DBMProcessingUnit cur)
Returns the processing unit data object (of the current schema) 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.

getFirstDataObjectRelationshipType

public DBMRelationshipType getFirstDataObjectRelationshipType()
Returns the first relationship type data object of the current schema in the DB-MAIN repository.

Returns:
the DBMRelationshipType instance representing the first relationship type.

getLastDataObjectRelationshipType

public DBMRelationshipType getLastDataObjectRelationshipType()
Returns the last relationship type data object of the current schema in the DB-MAIN repository.

Returns:
the DBMRelationshipType instance representing the last relationship type.

getNextDataObjectRelationshipType

public DBMRelationshipType getNextDataObjectRelationshipType(DBMRelationshipType cur)
Returns the relationship type data object (of the current schema) that follows the relationship type cur in the DB-MAIN repository.

Parameters:
cur - the current relationship type.
Returns:
the DBMRelationshipType instance representing the next relationship type.

getPreviousDataObjectRelationshipType

public DBMRelationshipType getPreviousDataObjectRelationshipType(DBMRelationshipType cur)
Returns the relationship type data object (of the current schema) that precedes the relationship type cur in the DB-MAIN repository.

Parameters:
cur - the current relationship type.
Returns:
the DBMRelationshipType instance representing the previous relationship type.

getFirstDataObjectEntityType

public DBMEntityType getFirstDataObjectEntityType()
Returns the first entity type data object of the current schema in the DB-MAIN repository.

Returns:
the DBMEntityType instance representing the first entity type.

getLastDataObjectEntityType

public DBMEntityType getLastDataObjectEntityType()
Returns the last entity type data object of the current schema in the DB-MAIN repository.

Returns:
the DBMEntityType instance representing the last entity type.

getNextDataObjectEntityType

public DBMEntityType getNextDataObjectEntityType(DBMEntityType cur)
Returns the entity type data object (of the current schema) that follows the entity type cur in the DB-MAIN repository.

Parameters:
cur - the current entity type.
Returns:
the DBMEntityType instance representing the next entity type.

getPreviousDataObjectEntityType

public DBMEntityType getPreviousDataObjectEntityType(DBMEntityType cur)
Returns the entity type data object (of the current schema) that precedes the entity type cur in the DB-MAIN repository.

Parameters:
cur - the current entity type.
Returns:
the DBMEntityType instance representing the previous entity type.

getFirstDataObjectSimpleAttribute

public DBMSimpleAttribute getFirstDataObjectSimpleAttribute()
Returns the first simple attribute data object of the current schema in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the first simple attribute.

getLastDataObjectSimpleAttribute

public DBMSimpleAttribute getLastDataObjectSimpleAttribute()
Returns the last simple attribute data object of the current schema in the DB-MAIN repository.

Returns:
the DBMSimpleAttribute instance representing the last simple attribute.

getNextDataObjectSimpleAttribute

public DBMSimpleAttribute getNextDataObjectSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute data object (of the current schema) 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.

getPreviousDataObjectSimpleAttribute

public DBMSimpleAttribute getPreviousDataObjectSimpleAttribute(DBMSimpleAttribute cur)
Returns the simple attribute data object (of the current schema) 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.

getFirstDataObjectCompoundAttribute

public DBMCompoundAttribute getFirstDataObjectCompoundAttribute()
Returns the first compound attribute data object of the current schema in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the first compound attribute.

getLastDataObjectCompoundAttribute

public DBMCompoundAttribute getLastDataObjectCompoundAttribute()
Returns the last compound attribute data object of the current schema in the DB-MAIN repository.

Returns:
the DBMCompoundAttribute instance representing the last compound attribute.

getNextDataObjectCompoundAttribute

public DBMCompoundAttribute getNextDataObjectCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute data object (of the current schema) 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.

getPreviousDataObjectCompoundAttribute

public DBMCompoundAttribute getPreviousDataObjectCompoundAttribute(DBMCompoundAttribute cur)
Returns the compound attribute data object (of the current schema) 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.

addFirstDataObject

public void addFirstDataObject(DBMDataObject cur)
Adds a first data object (cur) to the current schema in the DB-MAIN repository.

Parameters:
cur - the added data object.

addNextDataObject

public void addNextDataObject(DBMDataObject cur,
                              DBMDataObject prev)
Adds a data object (cur) following the data object (prev) to the current schema in the DB-MAIN repository.

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

removeDataObject

public void removeDataObject()
Removes the list of data object attached to the current schema in the DB-MAIN repository.


getFirstCollection

public DBMCollection getFirstCollection()
Returns the first collection of the current schema in the DB-MAIN repository.

Returns:
the DBMCollection instance representing the first collection.

getLastCollection

public DBMCollection getLastCollection()
Returns the last collection of the current schema in the DB-MAIN repository.

Returns:
the DBMCollection instance representing the last collection.

getNextCollection

public DBMCollection getNextCollection(DBMCollection cur)
Returns the collection (of the current schema) that follows the collection cur in the DB-MAIN repository.

Parameters:
cur - the current collection.
Returns:
the DBMCollection instance representing the next collection.

getPreviousCollection

public DBMCollection getPreviousCollection(DBMCollection cur)
Returns the collection (of the current schema) that precedes the collection cur in the DB-MAIN repository.

Parameters:
cur - the current collection.
Returns:
the DBMCollection instance representing the previous collection.

addFirstCollection

public void addFirstCollection(DBMCollection cur)
Adds a first collection (cur) to the current schema in the DB-MAIN repository.

Parameters:
cur - the added collection.

addNextCollection

public void addNextCollection(DBMCollection cur,
                              DBMCollection prev)
Adds a collection (cur) following the collection (prev) to the current schema in the DB-MAIN repository.

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

removeCollection

public void removeCollection()
Removes the list of collection attached to the current schema in the DB-MAIN repository.


findEntityType

public DBMEntityType findEntityType(java.lang.String name)
Returns the entity type that have a specified name in the current schema. The search is case insensitive.

Parameters:
name - the name of the entity type that must be found.
Returns:
the DBMEntityType instance named 'name'.

findRelationshipType

public DBMRelationshipType findRelationshipType(java.lang.String name)
Returns the relationship type that have a specified name in the current schema. The search is case insensitive.

Parameters:
name - the name of the relationship type that must be found.
Returns:
the DBMRelationshipType instance named 'name'.

findProcessingUnit

public DBMProcessingUnit findProcessingUnit(java.lang.String name)
Returns the processing unit that have a specified name in the current schema. 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'.

getSelectedObjects

public java.util.Vector<DBMGenericObject> getSelectedObjects()
Returns the list of selected object in the current schema.

Returns:
the vector of selected object.

getSelectedObjects

public java.util.Vector<DBMGenericObject> getSelectedObjects(long selection)
Returns the list of selected object in the current schema following the specified selection criteria.

Parameters:
selection - The selection criteria that must be DBMGenericObject.SELECT or DBMGenericObject.MARK1 to DBMGenericObject.MARK5.
Returns:
The vector of selected object.

copySchema

public DBMSchema copySchema(java.lang.String name,
                            java.lang.String version,
                            java.lang.String processname)
Copies a instance of current schema in the DB-MAIN repository.

Parameters:
name - the name value of the copy.
version - the version value of the copy.
processname - the name value of the process linking the two schemas.
Returns:
the DBMSchema instance representing the copied schema.

generateSQL

public DBMSchema generateSQL(java.lang.String filename,
                             int type,
                             java.lang.String processname)
Generates the SQL creation script file of current schema.

Parameters:
filename - the name of the file containing the SQL creation script.
type - the type of SQL (see the constant defined in DBMLibrary: GEN_ACA_SQL, GEN_ACCESS_SQL, GEN_FIREBIRD_SQL, GEN_MYSQL_SQL, GEN_POSTGRESQL_SQL, GEN_SQLITE_SQL, GEN_STD_SQL).
processname - the name value of the process linking the current schema and the text product representing the SQL creation script file.
Returns:
the DBMText instance representing the SQL creation script file.

getUpdated

public int getUpdated()
Returns the updated value of the current schema that indicates if the schema window must be refresh.

Returns:
the int value of the field updated (if equal 0, the schema windows is refreshed).

lockUpdated

public void lockUpdated()
Increments the updated value of the current schema.


unlockUpdated

public void unlockUpdated()
Decrements the updated value of the current schema. If the value of updated becomes 0, the schema window is refreshed.