org.modelsphere.jack.baseDb.db
Class DbSemanticalObject

java.lang.Object
  extended by PersistentObject
      extended by org.modelsphere.jack.baseDb.db.DbObject
          extended by org.modelsphere.jack.baseDb.db.DbSemanticalObject
Direct Known Subclasses:
DbProject, DbSMSSemanticalObject, DbSMSStereotype, DbSMSUmlConstraint, DbUDF

public abstract class DbSemanticalObject
extends DbObject

Defines model objects that can be named (semantic object).

This class defines generic methods to access name, physical name, alias and description.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.modelsphere.jack.baseDb.db.DbObject
DbObject.ComponentIterator
 
Field Summary
static MetaField fAdminAccessList
           
static MetaField fAlias
           
static MetaField fDescription
           
static MetaField fName
           
static MetaField fPhysicalName
           
static MetaField fWriteAccessList
           
static MetaClass metaClass
           
 
Fields inherited from class org.modelsphere.jack.baseDb.db.DbObject
ACCESS_GRANTED, ACCESS_NOT_GRANTED, fComponents, fComposite, fCreationTime, fModificationTime, fUdfValues, fValidationStatus, LONG_FORM, SHORT_FORM, VALIDATION_ERROR, VALIDATION_OK, VALIDATION_WARNING, writeAccess
 
Constructor Summary
DbSemanticalObject()
           
DbSemanticalObject(DbObject composite)
           
 
Method Summary
 DbObject findComponentByPhysicalName(MetaClass metaClass, java.lang.String physicalName)
          Returns the component of the specified class with the specified physical name.
 DbtLoginList getAdminAccessList()
           
 java.lang.String getAlias()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getPhysicalName()
           
 DbtLoginList getWriteAccessList()
           
static void initMeta()
           
 boolean matches(DbObject dbo)
           
 void set(MetaField metaField, java.lang.Object value)
           
 void setAlias(java.lang.String value)
          Change the alias.
 void setDescription(java.lang.String value)
          Change the description for this object.
 void setName(java.lang.String value)
           
 void setPhysicalName(java.lang.String value)
          Change the physical name.
 
Methods inherited from class org.modelsphere.jack.baseDb.db.DbObject
addDbRefreshListener, addDbRefreshListener, basicReinsert, basicSet, basicSet, buildFullNameString, buildFullNameString, componentTree, componentTree, componentTree, copyComponent, createComponent, createComponent, createRAMRelN, deepCopy, deepCopy, doDeleteAction, findComponentByName, findComponentByName, findMatchingObject, generateEDCTimestamp, get, get, get, getAccordingToStatus, getComponents, getComposite, getCompositeOfType, getCreationTime, getDb, getDependencyRelations, getEDCTimestamp, getFullDisplayName, getId, getMatchingObject, getMetaClass, getMinCard, getModificationTime, getNbNeighbors, getNextTs, getOld, getProject, getSemanticalIcon, getSemanticalName, getTransStatus, getTs, getUDF, getUdfValues, getValidationStatus, hasAdminAccess, hasChanged, hasField, hasWriteAccess, isAddedAndRemoved, isAlive, isDeletable, isDescendingFrom, isHugeRelN, load, load, reinsert, remove, removeDbRefreshListener, save, set, set, setComposite, setMatchingObject, setModificationTime, setRelationNN, setRelationNN, setValidationStatus, toString, valuesAreEqual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fName

public static final MetaField fName

fPhysicalName

public static final MetaField fPhysicalName

fAlias

public static final MetaField fAlias

fDescription

public static final MetaField fDescription

fWriteAccessList

public static final MetaField fWriteAccessList

fAdminAccessList

public static final MetaField fAdminAccessList

metaClass

public static final MetaClass metaClass
Constructor Detail

DbSemanticalObject

public DbSemanticalObject()

DbSemanticalObject

public DbSemanticalObject(DbObject composite)
                   throws DbException
Throws:
DbException
Method Detail

initMeta

public static void initMeta()

matches

public boolean matches(DbObject dbo)
                throws DbException
Overrides:
matches in class DbObject
Throws:
DbException

setName

public void setName(java.lang.String value)
             throws DbException
Overrides:
setName in class DbObject
Throws:
DbException

setAlias

public final void setAlias(java.lang.String value)
                    throws DbException
Change the alias. Aliases are alternate display value to identify objects.

Parameters:
value -
Throws:
DbException

setPhysicalName

public final void setPhysicalName(java.lang.String value)
                           throws DbException
Change the physical name. Physical names are used to allow user to specify a non limitative name to identify objects. The physical name should be used (instead of name) for code, SQL or script generation.

Parameters:
value -
Throws:
DbException

setDescription

public final void setDescription(java.lang.String value)
                          throws DbException
Change the description for this object.

Parameters:
value -
Throws:
DbException

set

public void set(MetaField metaField,
                java.lang.Object value)
         throws DbException
Overrides:
set in class DbObject
Throws:
DbException

getName

public final java.lang.String getName()
                               throws DbException
Overrides:
getName in class DbObject
Throws:
DbException

getAlias

public final java.lang.String getAlias()
                                throws DbException
Returns:
Throws:
DbException

getPhysicalName

public final java.lang.String getPhysicalName()
                                       throws DbException
Returns:
Throws:
DbException
See Also:
setPhysicalName(String)

getDescription

public final java.lang.String getDescription()
                                      throws DbException
Returns:
Throws:
DbException
See Also:
setDescription(String)

getWriteAccessList

public final DbtLoginList getWriteAccessList()
                                      throws DbException
Throws:
DbException

getAdminAccessList

public final DbtLoginList getAdminAccessList()
                                      throws DbException
Throws:
DbException

findComponentByPhysicalName

public final DbObject findComponentByPhysicalName(MetaClass metaClass,
                                                  java.lang.String physicalName)
                                           throws DbException
Returns the component of the specified class with the specified physical name.

Note: This method is not recursive. Only direct components of this semantical object are checked.

Parameters:
metaClass - If null, search for a match in any components.
physicalName -
Returns:
Throws:
DbException
See Also:
DbObject.findComponentByName(MetaClass, String)


Open ModelSphere 2007. All Rights Reserved.