|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.dataobjects.BaseDataObject
com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject
com.jcorporate.expresso.core.dbobj.DBObject
com.jcorporate.expresso.core.dbobj.SecuredDBObject
com.jcorporate.expresso.core.dbobj.AutoDBObject
This class provides convenience methods by querying the database table it is set to and automatically setting up it's own fields that way. Creation date: (10/3/00 11:07:02 AM)
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT, SYSTEM_ACCOUNT_NAME, UPDATE |
| Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
anyFieldsDistinct, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
| Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
currentStatus, globalMask |
| Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
| Constructor Summary | |
AutoDBObject()
AutoDBObject constructor comment. |
|
AutoDBObject(DBConnection newConnection)
AutoDBObject constructor comment. |
|
AutoDBObject(int uid)
Initialize an AutoDBObject with a uid. |
|
| Method Summary | |
String |
getDefinitionName()
Retrieve the key to the definition name for the given DBObject. |
DBObject |
getThisDBObj()
getThisDBObj method comment. |
void |
setDefinitionName(String definitionName)
Use this method to set the key to the definition name for the Defineable database object. |
void |
setTargetTable(String theTable)
Set the target table for this AutoDBObject - this causes the object to set itself up with the fields from the database as it's fields. |
protected void |
setupFields()
setupFields method. |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
add, canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, update |
| Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutoDBObject()
throws DBException
DBException - The exception description.
public AutoDBObject(DBConnection newConnection)
throws DBException
newConnection - com.jcorporate.expresso.core.db.DBConnection
DBException - The exception description.
public AutoDBObject(int uid)
throws DBException
uid - the user ID or -1 if System privileges
DBException - upon error| Method Detail |
public DBObject getThisDBObj()
throws DBException
getThisDBObj in class DBObjectDBException - upon error.DBObject.getThisDBObj()
public void setTargetTable(String theTable)
throws DBException
setTargetTable in class DBObjecttheTable - Table for this object
DBException - upon error.
public void setDefinitionName(String definitionName)
throws DataException
definitionName - java.lang.String, the actual definition of the
dataobject.
DataException - if the DataObject is unable to initialize itself
with the given definition name.public String getDefinitionName()
protected void setupFields()
throws DBException
setupFields in class DBObjectDBException - If there is an error setting up the fields
as requested. For example, if a field allowing null is requested
as part of the key
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||