com.dbmain.jidbm
Class DBMMetaObject

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMMetaObject

public class DBMMetaObject
extends DBMConcreteObject

The DBMMetaObject class represents meta-object objects of the DB-MAIN repository.

A meta-object can have several meta-propertys.


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
DBMMetaObject(int id)
          Creates a new instance of the DBMMetaObject class representing the meta-object identified by id and the current project in DB-MAIN.
DBMMetaObject(int id, long sysid)
          Creates a new instance of the DBMMetaObject class representing the meta-object identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstMetaProperty(DBMMetaProperty cur)
          Adds a first meta-property (cur) to the current meta-object in the DB-MAIN repository.
 void addNextMetaProperty(DBMMetaProperty cur, DBMMetaProperty prev)
          Adds a meta-property (cur) following the meta-property (prev) to the current meta-object in the DB-MAIN repository.
 DBMMetaProperty createMetaProperty(java.lang.String name, char type, int funct, DBMMetaProperty prev)
          Creates a new instance of meta-property attached to the current meta-object in the DB-MAIN repository.
 void deleteMetaObject()
          Deletes the meta-object of the DB-MAIN repository represented by the current DBMMetaObject instance.
 DBMMetaProperty findMetaProperty(java.lang.String name)
          Find the meta property of the current meta object that has the specified name.
 DBMMetaProperty getFirstMetaProperty()
          Returns the first meta-property of the current meta-object in the DB-MAIN repository.
 DBMMetaProperty getLastMetaProperty()
          Returns the last meta-property of the current meta-object in the DB-MAIN repository.
 DBMMetaProperty getNextMetaProperty(DBMMetaProperty cur)
          Returns the meta-property (of the current meta-object) that follows the meta-property cur in the DB-MAIN repository.
 DBMMetaProperty getPreviousMetaProperty(DBMMetaProperty cur)
          Returns the meta-property (of the current meta-object) that precedes the meta-property cur in the DB-MAIN repository.
 DBMProject getProject()
          Returns the project of the current meta-object.
 short getType()
          Returns the type of the current meta-object.
 void removeMetaProperty()
          Removes the list of meta-property attached to the current meta-object in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMConcreteObject
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription, toString
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, 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, removeNoteRelation, 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
 

Constructor Detail

DBMMetaObject

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

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

DBMMetaObject

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

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

getType

public short getType()
Returns the type of the current meta-object.

Returns:
the short value of the field type.

deleteMetaObject

public void deleteMetaObject()
Deletes the meta-object of the DB-MAIN repository represented by the current DBMMetaObject instance.


createMetaProperty

public DBMMetaProperty createMetaProperty(java.lang.String name,
                                          char type,
                                          int funct,
                                          DBMMetaProperty prev)
Creates a new instance of meta-property attached to the current meta-object in the DB-MAIN repository.

Parameters:
name - the value of the field name.
type - the value of the field type.
funct - the value of the field function.
prev - the meta-property after which the created object is inserted.
Returns:
the DBMMetaProperty instance representing the new meta-property.

getFirstMetaProperty

public DBMMetaProperty getFirstMetaProperty()
Returns the first meta-property of the current meta-object in the DB-MAIN repository.

Returns:
the DBMMetaProperty instance representing the first meta-property.

getLastMetaProperty

public DBMMetaProperty getLastMetaProperty()
Returns the last meta-property of the current meta-object in the DB-MAIN repository.

Returns:
the DBMMetaProperty instance representing the last meta-property.

getNextMetaProperty

public DBMMetaProperty getNextMetaProperty(DBMMetaProperty cur)
Returns the meta-property (of the current meta-object) that follows the meta-property cur in the DB-MAIN repository.

Parameters:
cur - the current meta-property.
Returns:
the DBMMetaProperty instance representing the next meta-property.

getPreviousMetaProperty

public DBMMetaProperty getPreviousMetaProperty(DBMMetaProperty cur)
Returns the meta-property (of the current meta-object) that precedes the meta-property cur in the DB-MAIN repository.

Parameters:
cur - the current meta-property.
Returns:
the DBMMetaProperty instance representing the previous meta-property.

addFirstMetaProperty

public void addFirstMetaProperty(DBMMetaProperty cur)
Adds a first meta-property (cur) to the current meta-object in the DB-MAIN repository.

Parameters:
cur - the added meta-property.

addNextMetaProperty

public void addNextMetaProperty(DBMMetaProperty cur,
                                DBMMetaProperty prev)
Adds a meta-property (cur) following the meta-property (prev) to the current meta-object in the DB-MAIN repository.

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

removeMetaProperty

public void removeMetaProperty()
Removes the list of meta-property attached to the current meta-object in the DB-MAIN repository.


getProject

public DBMProject getProject()
Returns the project of the current meta-object.

Returns:
the DBMProject instance representing the project.

findMetaProperty

public DBMMetaProperty findMetaProperty(java.lang.String name)
Find the meta property of the current meta object that has the specified name.

Parameters:
name - the name of the meta property to be find.
Returns:
the DBMMetaProperty instance representing the meta-property called name.