com.dbmain.jidbm
Class DBMNote

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMNote

public class DBMNote
extends DBMGenericObject

The DBMNote class represents note objects of the DB-MAIN repository.

A note can have several note relations.


Field Summary
 
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
DBMNote(int id)
          Creates a new instance of the DBMNote class representing the note identified by id and the current project in DB-MAIN.
DBMNote(int id, long sysid)
          Creates a new instance of the DBMNote class representing the note 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 note in the DB-MAIN repository.
 void addNextNoteRelation(DBMNoteRelation cur, DBMNoteRelation prev)
          Adds a note relation (cur) following the note relation (prev) to the current note in the DB-MAIN repository.
 void deleteNote()
          Deletes the note of the DB-MAIN repository represented by the current DBMNote instance.
 java.lang.String getDescription()
          Returns the description of the current note.
 DBMNoteRelation getFirstNoteRelation()
          Returns the first note relation of the current note in the DB-MAIN repository.
 DBMNoteRelation getLastNoteRelation()
          Returns the last note relation of the current note in the DB-MAIN repository.
 DBMNoteRelation getNextNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current note) that follows the note relation cur in the DB-MAIN repository.
 DBMNoteRelation getPreviousNoteRelation(DBMNoteRelation cur)
          Returns the note relation (of the current note) that precedes the note relation cur in the DB-MAIN repository.
 void removeNoteRelation()
          Removes the list of note relation attached to the current note in the DB-MAIN repository.
 void setDescription(java.lang.String val)
          Updates the value of description in the current note in the DB-MAIN repository.
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBMNote

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

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

DBMNote

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

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

getDescription

public java.lang.String getDescription()
Returns the description of the current note.

Returns:
the String value of the field description.

setDescription

public void setDescription(java.lang.String val)
Updates the value of description in the current note in the DB-MAIN repository.

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

deleteNote

public void deleteNote()
Deletes the note of the DB-MAIN repository represented by the current DBMNote instance.


getFirstNoteRelation

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

Overrides:
removeNoteRelation in class DBMGenericObject