com.dbmain.jidbm
Class DBMText

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

public class DBMText
extends DBMProduct

The DBMText class represents text objects of the DB-MAIN repository.

A text can have several user views, note relations and text lines.


Field Summary
static java.lang.String FILE_GEN_DIC
          Constant of field fileType: Report generation file.
static java.lang.String FILE_GEN_SQL_AC
          Constant of field fileType: Academic SQL generation file.
static java.lang.String FILE_GEN_SQL_ACCESS
          Constant of field fileType: Access generation file.
static java.lang.String FILE_GEN_SQL_FIREBIRD
          Constant of field fileType: Firebird generation file.
static java.lang.String FILE_GEN_SQL_MYSQL
          Constant of field fileType: MySQL generation file.
static java.lang.String FILE_GEN_SQL_POSTGRESQL
          Constant of field fileType: PostgreSQL generation file.
static java.lang.String FILE_GEN_SQL_SQLITE
          Constant of field fileType: SQLite generation file.
static java.lang.String FILE_GEN_SQL_STD
          Constant of field fileType: Standard SQL generation file.
static java.lang.String FILE_XTR_COB
          Constant of field fileType: COBOL extraction file.
static java.lang.String FILE_XTR_COD
          Constant of field fileType: CODASYL extraction file.
static java.lang.String FILE_XTR_IMS
          Constant of field fileType: IMS extraction file.
static java.lang.String FILE_XTR_SQL
          Constant of field fileType: SQL extraction file.
 
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
DBMText(int id)
          Creates a new instance of the DBMText class representing the text identified by id and the current project in DB-MAIN.
DBMText(int id, long sysid)
          Creates a new instance of the DBMText class representing the text identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstNoteRelation(DBMNoteRelation cur)
          Adds a first note relation (cur) to the current text in the DB-MAIN repository.
 void addFirstTextLine(DBMTextLine cur)
          Adds a first text line (cur) to the current text in the DB-MAIN repository.
 void addFirstUserView(DBMUserView cur)
          Adds a first user view (cur) to the current text in the DB-MAIN repository.
 void addNextNoteRelation(DBMNoteRelation cur, DBMNoteRelation prev)
          Adds a note relation (cur) following the note relation (prev) to the current text in the DB-MAIN repository.
 void addNextTextLine(DBMTextLine cur, DBMTextLine prev)
          Adds a text line (cur) following the text line (prev) to the current text in the DB-MAIN repository.
 void addNextUserView(DBMUserView cur, DBMUserView prev)
          Adds a user view (cur) following the user view (prev) to the current text in the DB-MAIN repository.
 DBMTextLine createTextLine(int num)
          Creates a new instance of text line attached to the current text 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 text 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 text in the DB-MAIN repository.
 void deleteText()
          Deletes the text of the DB-MAIN repository represented by the current DBMText instance.
 java.lang.String getFileType()
          Returns the file type of the current text.
 DBMNoteRelation getFirstNoteRelation()
          Returns the first note relation of the current text in the DB-MAIN repository.
 DBMTextLine getFirstTextLine()
          Returns the first text line of the current text in the DB-MAIN repository.
 DBMUserView getFirstUserView()
          Returns the first user view of the current text in the DB-MAIN repository.
 DBMNoteRelation getLastNoteRelation()
          Returns the last note relation of the current text in the DB-MAIN repository.
 DBMTextLine getLastTextLine()
          Returns the last text line of the current text in the DB-MAIN repository.
 DBMUserView getLastUserView()
          Returns the last user view of the current text in the DB-MAIN repository.
 DBMNoteRelation getNextNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current text) that follows the note relation cur in the DB-MAIN repository.
 DBMTextLine getNextTextLine(DBMTextLine cur)
          Returns the text line (of the current text) that follows the text line cur in the DB-MAIN repository.
 DBMUserView getNextUserView(DBMUserView cur)
          Returns the user view (of the current text) that follows the user view cur in the DB-MAIN repository.
 java.lang.String getPath()
          Returns the path of the current text.
 DBMNoteRelation getPreviousNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current text) that precedes the note relation cur in the DB-MAIN repository.
 DBMTextLine getPreviousTextLine(DBMTextLine cur)
          Returns the text line (of the current text) that precedes the text line cur in the DB-MAIN repository.
 DBMUserView getPreviousUserView(DBMUserView cur)
          Returns the user view (of the current text) that precedes the user view cur in the DB-MAIN repository.
 void removeNoteRelation()
          Removes the list of note relation attached to the current text in the DB-MAIN repository.
 void removeTextLine()
          Removes the list of text line attached to the current text in the DB-MAIN repository.
 void removeUserView()
          Removes the list of user view attached to the current text in the DB-MAIN repository.
 void setFileType(java.lang.String val)
          Updates the value of file type in the current text in the DB-MAIN repository.
 void setPath(java.lang.String val)
          Updates the value of path in the current text in the DB-MAIN repository.
 
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

FILE_XTR_SQL

public static final java.lang.String FILE_XTR_SQL
Constant of field fileType: SQL extraction file.

See Also:
Constant Field Values

FILE_XTR_COB

public static final java.lang.String FILE_XTR_COB
Constant of field fileType: COBOL extraction file.

See Also:
Constant Field Values

FILE_XTR_COD

public static final java.lang.String FILE_XTR_COD
Constant of field fileType: CODASYL extraction file.

See Also:
Constant Field Values

FILE_XTR_IMS

public static final java.lang.String FILE_XTR_IMS
Constant of field fileType: IMS extraction file.

See Also:
Constant Field Values

FILE_GEN_SQL_AC

public static final java.lang.String FILE_GEN_SQL_AC
Constant of field fileType: Academic SQL generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_FIREBIRD

public static final java.lang.String FILE_GEN_SQL_FIREBIRD
Constant of field fileType: Firebird generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_ACCESS

public static final java.lang.String FILE_GEN_SQL_ACCESS
Constant of field fileType: Access generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_MYSQL

public static final java.lang.String FILE_GEN_SQL_MYSQL
Constant of field fileType: MySQL generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_POSTGRESQL

public static final java.lang.String FILE_GEN_SQL_POSTGRESQL
Constant of field fileType: PostgreSQL generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_SQLITE

public static final java.lang.String FILE_GEN_SQL_SQLITE
Constant of field fileType: SQLite generation file.

See Also:
Constant Field Values

FILE_GEN_SQL_STD

public static final java.lang.String FILE_GEN_SQL_STD
Constant of field fileType: Standard SQL generation file.

See Also:
Constant Field Values

FILE_GEN_DIC

public static final java.lang.String FILE_GEN_DIC
Constant of field fileType: Report generation file.

See Also:
Constant Field Values
Constructor Detail

DBMText

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

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

DBMText

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

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

getPath

public java.lang.String getPath()
Returns the path of the current text.

Returns:
the String value of the field path.

setPath

public void setPath(java.lang.String val)
Updates the value of path in the current text in the DB-MAIN repository.

Parameters:
val - the new String value of the field Path.

getFileType

public java.lang.String getFileType()
Returns the file type of the current text.

Returns:
the String value of the field fileType.

setFileType

public void setFileType(java.lang.String val)
Updates the value of file type in the current text in the DB-MAIN repository.

Parameters:
val - the new String value of the field FileType.

deleteText

public void deleteText()
Deletes the text of the DB-MAIN repository represented by the current DBMText 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 text 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.

createTextLine

public DBMTextLine createTextLine(int num)
Creates a new instance of text line attached to the current text in the DB-MAIN repository.

Parameters:
num - the value of the field number.
Returns:
the DBMTextLine instance representing the new text line.

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

getFirstUserView

public DBMUserView getFirstUserView()
Returns the first user view of the current text 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 text 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 text) 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 text) 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 text 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 text 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 text in the DB-MAIN repository.


getFirstNoteRelation

public DBMNoteRelation getFirstNoteRelation()
Returns the first note relation of the current text 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 text 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 text) 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 text) 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 text 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 text 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 text in the DB-MAIN repository.

Overrides:
removeNoteRelation in class DBMGenericObject

getFirstTextLine

public DBMTextLine getFirstTextLine()
Returns the first text line of the current text in the DB-MAIN repository.

Returns:
the DBMTextLine instance representing the first text line.

getLastTextLine

public DBMTextLine getLastTextLine()
Returns the last text line of the current text in the DB-MAIN repository.

Returns:
the DBMTextLine instance representing the last text line.

getNextTextLine

public DBMTextLine getNextTextLine(DBMTextLine cur)
Returns the text line (of the current text) that follows the text line cur in the DB-MAIN repository.

Parameters:
cur - the current text line.
Returns:
the DBMTextLine instance representing the next text line.

getPreviousTextLine

public DBMTextLine getPreviousTextLine(DBMTextLine cur)
Returns the text line (of the current text) that precedes the text line cur in the DB-MAIN repository.

Parameters:
cur - the current text line.
Returns:
the DBMTextLine instance representing the previous text line.

addFirstTextLine

public void addFirstTextLine(DBMTextLine cur)
Adds a first text line (cur) to the current text in the DB-MAIN repository.

Parameters:
cur - the added text line.

addNextTextLine

public void addNextTextLine(DBMTextLine cur,
                            DBMTextLine prev)
Adds a text line (cur) following the text line (prev) to the current text in the DB-MAIN repository.

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

removeTextLine

public void removeTextLine()
Removes the list of text line attached to the current text in the DB-MAIN repository.