com.dbmain.jidbm
Class DBMSimpleAttribute

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMDataObject
              extended by com.dbmain.jidbm.DBMAttribute
                  extended by com.dbmain.jidbm.DBMSimpleAttribute

public class DBMSimpleAttribute
extends DBMAttribute

The DBMSimpleAttribute class represents simple attribute 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 DATE_ATT
          Constant of field type: Date type.
static char FLOAT_ATT
          Constant of field type: Real type.
static char INDEX_ATT
          Constant of field type: Index type.
static char NUM_ATT
          Constant of field type: Integer type.
static char OBJECT_ATT
          Constant of field type: Object type.
static char SEQ_ATT
          Constant of field type: Sequence type.
static char USER_ATT
          Constant of field type: User-defined type.
static char VARCHAR_ATT
          Constant of field type: String type.
 
Fields inherited from class com.dbmain.jidbm.DBMAttribute
ARRAY_ATT, BAG_ATT, LIST_ATT, N_CARD, SET_ATT, UARRAY_ATT, ULIST_ATT
 
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
DBMSimpleAttribute(int id)
          Creates a new instance of the DBMSimpleAttribute class representing the simple attribute identified by id and the current project in DB-MAIN.
DBMSimpleAttribute(int id, long sysid)
          Creates a new instance of the DBMSimpleAttribute class representing the simple attribute identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void deleteSimpleAttribute()
          Deletes the simple attribute of the DB-MAIN repository represented by the current DBMSimpleAttribute instance.
 DBMDataObject getDataObject()
          Returns the data object of the current simple attribute.
 short getDecimalNumber()
          Returns the decimal number of the current simple attribute.
 int getLength()
          Returns the length of the current simple attribute.
 char getType()
          Returns the type of the current simple attribute.
 java.lang.String getTypeName()
          Returns the type constant name of the current simple attribute.
 boolean isRecyclable()
          Returns the recyclable of the current simple attribute.
 boolean isStable()
          Returns the stable of the current simple attribute.
 void removeDataObject()
          Removes the data object attached to the current simple attribute in the DB-MAIN repository.
 void setDecimalNumber(short val)
          Updates the value of decimal number in the current simple attribute in the DB-MAIN repository.
 void setLength(int val)
          Updates the value of length in the current simple attribute in the DB-MAIN repository.
 void setRecyclable(boolean val)
          Updates the value of recyclable in the current simple attribute in the DB-MAIN repository.
 void setStable(boolean val)
          Updates the value of stable in the current simple attribute in the DB-MAIN repository.
 void setType(char val)
          Updates the value of type in the current simple attribute in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMAttribute
convertAttribute, convertAttribute, deleteAttribute, getAttributeOwner, getFirstMemberOfGroup, getLastMemberOfGroup, getMaximumCardinality, getMinimumCardinality, getNextMemberOfGroup, getPreviousMemberOfGroup, getSetType, getSetTypeName, isBoolean, isCharacter, isCompound, isDate, isFloat, isIndex, isNumeric, isObject, isSequence, isUserDefined, isVariableCharacter, materializeAttribute, removeAttributeOwner, removeMemberOfGroup, removeMemberOfGroup, setMaximumCardinality, setMinimumCardinality, setSetType, transformIntoEntityType, transformIntoRelationshipType, transformMonovaluedIntoMultivaluedAttribute, transformMultivaluedIntoAttributeList, transformMultivaluedIntoMonovaluedAttribute
 
Methods inherited from class com.dbmain.jidbm.DBMDataObject
addFirstGroup, addFirstSimpleAttribute, addNextGroup, addNextSimpleAttribute, copyGroup, createGroup, createUniqueGroup, deleteDataObject, getFirstAccessKey, getFirstCollection, getFirstGroup, getFirstReferentialConstraint, getFirstSecondaryIdentifier, getFirstSimpleAttribute, getLastCollection, getLastGroup, getLastSimpleAttribute, getNextAccessKey, getNextCollection, getNextGroup, getNextReferentialConstraint, getNextSecondaryIdentifier, getNextSimpleAttribute, getPreviousCollection, getPreviousGroup, getPreviousSimpleAttribute, getPrimaryIdentifier, getSchema, removeCollection, removeCollection, removeGroup, removeSchema, removeSimpleAttribute
 
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

DATE_ATT

public static final char DATE_ATT
Constant of field type: Date 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

OBJECT_ATT

public static final char OBJECT_ATT
Constant of field type: Object type.

See Also:
Constant Field Values

USER_ATT

public static final char USER_ATT
Constant of field type: User-defined type.

See Also:
Constant Field Values

SEQ_ATT

public static final char SEQ_ATT
Constant of field type: Sequence type.

See Also:
Constant Field Values

INDEX_ATT

public static final char INDEX_ATT
Constant of field type: Index type.

See Also:
Constant Field Values
Constructor Detail

DBMSimpleAttribute

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

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

DBMSimpleAttribute

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

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

getType

public char getType()
Returns the type of the current simple attribute.

Returns:
the char value of the field type.

getTypeName

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

Returns:
the string representation of the field type.

setType

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

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

isStable

public boolean isStable()
Returns the stable of the current simple attribute.

Returns:
the boolean value of the field stable.

setStable

public void setStable(boolean val)
Updates the value of stable in the current simple attribute in the DB-MAIN repository.

Parameters:
val - the new boolean value of the field Stable.

isRecyclable

public boolean isRecyclable()
Returns the recyclable of the current simple attribute.

Returns:
the boolean value of the field recyclable.

setRecyclable

public void setRecyclable(boolean val)
Updates the value of recyclable in the current simple attribute in the DB-MAIN repository.

Parameters:
val - the new boolean value of the field Recyclable.

getLength

public int getLength()
Returns the length of the current simple attribute.

Returns:
the int value of the field length.

setLength

public void setLength(int val)
Updates the value of length in the current simple attribute in the DB-MAIN repository.

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

getDecimalNumber

public short getDecimalNumber()
Returns the decimal number of the current simple attribute.

Returns:
the short value of the field decimalNumber.

setDecimalNumber

public void setDecimalNumber(short val)
Updates the value of decimal number in the current simple attribute in the DB-MAIN repository.

Parameters:
val - the new short value of the field DecimalNumber.

deleteSimpleAttribute

public void deleteSimpleAttribute()
Deletes the simple attribute of the DB-MAIN repository represented by the current DBMSimpleAttribute instance.


getDataObject

public DBMDataObject getDataObject()
Returns the data object of the current simple attribute.

Returns:
the DBMDataObject instance representing the data object.

removeDataObject

public void removeDataObject()
Removes the data object attached to the current simple attribute in the DB-MAIN repository.