com.dbmain.jidbm
Class DBMMetaProperty

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

public class DBMMetaProperty
extends DBMConcreteObject

The DBMMetaProperty class represents meta-property objects of the DB-MAIN repository.


Field Summary
static char BOO_ATT
          Constant of field type: Boolean type.
static char CHAR_ATT
          Constant of field type: Character type.
static char FLOAT_ATT
          Constant of field type: Real type.
static int MODIF_MP
          Constant of field function: Updatable meta-property.
static int MULTI_MP
          Constant of field function: Multivalued meta-property.
static char NUM_ATT
          Constant of field type: Integer type.
static int PREDEF_MP
          Constant of field function: Meta-property with predefined values.
static int SYSTEM_MP
          Constant of field function: System meta-property.
static char VARCHAR_ATT
          Constant of field type: String type.
 
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
DBMMetaProperty(int id)
          Creates a new instance of the DBMMetaProperty class representing the meta-property identified by id and the current project in DB-MAIN.
DBMMetaProperty(int id, long sysid)
          Creates a new instance of the DBMMetaProperty class representing the meta-property identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void deleteMetaProperty()
          Deletes the meta-property of the DB-MAIN repository represented by the current DBMMetaProperty instance.
 int getFunction()
          Returns the function of the current meta-property.
 DBMMetaObject getMetaObject()
          Returns the meta-object of the current meta-property.
 char getType()
          Returns the type of the current meta-property.
 java.lang.String getTypeName()
          Returns the type constant name of the current meta-property.
 boolean isFunctionConstant(int cst)
          Returns the constant cst value in the function of the current meta-property.
 void removeMetaObject()
          Removes the meta-object attached to the current meta-property in the DB-MAIN repository.
 void setFunction(int val)
          Updates the value of function in the current meta-property in the DB-MAIN repository.
 void setFunctionConstant(int cst, boolean val)
          Updates the constant cst value of function in the currentmeta-property in the DB-MAIN repository.
 void setType(char val)
          Updates the value of type in the current meta-property 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
 

Field Detail

CHAR_ATT

public static final char CHAR_ATT
Constant of field type: Character type.

See Also:
Constant Field Values

VARCHAR_ATT

public static final char VARCHAR_ATT
Constant of field type: String type.

See Also:
Constant Field Values

NUM_ATT

public static final char NUM_ATT
Constant of field type: Integer type.

See Also:
Constant Field Values

BOO_ATT

public static final char BOO_ATT
Constant of field type: Boolean type.

See Also:
Constant Field Values

FLOAT_ATT

public static final char FLOAT_ATT
Constant of field type: Real type.

See Also:
Constant Field Values

SYSTEM_MP

public static final int SYSTEM_MP
Constant of field function: System meta-property.

See Also:
Constant Field Values

MODIF_MP

public static final int MODIF_MP
Constant of field function: Updatable meta-property.

See Also:
Constant Field Values

PREDEF_MP

public static final int PREDEF_MP
Constant of field function: Meta-property with predefined values.

See Also:
Constant Field Values

MULTI_MP

public static final int MULTI_MP
Constant of field function: Multivalued meta-property.

See Also:
Constant Field Values
Constructor Detail

DBMMetaProperty

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

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

DBMMetaProperty

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

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

getType

public char getType()
Returns the type of the current meta-property.

Returns:
the char value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current meta-property.

Returns:
the string representation of the field type.

setType

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

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

getFunction

public int getFunction()
Returns the function of the current meta-property.

Returns:
the int value of the field function.

isFunctionConstant

public boolean isFunctionConstant(int cst)
Returns the constant cst value in the function of the current meta-property.

Parameters:
cst - a constant of the field function.
Returns:
the boolean value of constant cst in the field function.

setFunction

public void setFunction(int val)
Updates the value of function in the current meta-property in the DB-MAIN repository.

Parameters:
val - the new int value of the field Function.

setFunctionConstant

public void setFunctionConstant(int cst,
                                boolean val)
Updates the constant cst value of function in the currentmeta-property in the DB-MAIN repository.

Parameters:
cst - a constant of the field Function.
val - the new boolean value of the constant cst in the field Function.

deleteMetaProperty

public void deleteMetaProperty()
Deletes the meta-property of the DB-MAIN repository represented by the current DBMMetaProperty instance.


getMetaObject

public DBMMetaObject getMetaObject()
Returns the meta-object of the current meta-property.

Returns:
the DBMMetaObject instance representing the meta-object.

removeMetaObject

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