|
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.services.dbobj.Event
Event
| Nested Class Summary |
| Nested classes inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
DBObject.FieldError, DBObject.FieldUpdate |
| Field Summary | |
static String |
SYSTEM_ERROR
use this as theEvent parameter in order to generate admin email |
| 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 | |
Event()
|
|
Event(int uid)
|
|
Event(RequestContext request)
For using DBObjects within Controllers. |
|
Event(String dbName,
String theEvent,
String theMessage,
boolean success)
The one-liner version of event via this special constructor This method is used to create the event and send the notifications all in one step. |
|
| Method Summary | |
Vector |
getValues()
Method to return a Vector of ValidValue Template method--not implemented in this superclass. |
void |
populateDefaultValues()
populateDefaultValues is called by the schema object to allow a table to populate itself with any desired values. |
void |
sendMail(Vector theMessage,
boolean success)
Once an Event has been retrieved, this method allows the e-mail notifications to be sent to each of the appropriate users |
protected void |
setupFields()
Set up the database fields for this object |
| 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 |
| Field Detail |
public static final String SYSTEM_ERROR
Event(java.lang.String, java.lang.String, java.lang.String, boolean),
Constant Field Values| Constructor Detail |
public Event()
throws DBException
SecuredDBObject
public Event(int uid)
throws DBException
uid - the expresso uid
DBException - upon initialization error
public Event(RequestContext request)
throws DBException
request - - The request context handed to you by the framework.
DBException - upon initialization error
public Event(String dbName,
String theEvent,
String theMessage,
boolean success)
throws DBException,
LogException
dbName - the database context nametheEvent - Code of the event to triggertheMessage - Detail message associated for the eventsuccess - True if the event is the success of a task,
false if it indicates failure
DBException - If there is problem sending the notification
LogException| Method Detail |
public Vector getValues()
throws DBException
DBObject
getValues in interface LookupInterfacegetValues in class DBObjectDBException - If there is a problem retrieving the valuesDBObject.getValidValues(java.lang.String)
public void sendMail(Vector theMessage,
boolean success)
throws DBException,
LogException
theMessage - A Vector of strings containing the text of
the message to be sentsuccess - Is this message a notification of success?
DBException - on any error, including a mail system error
LogException
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
public void populateDefaultValues()
throws DBException
DBObjectThe base class implementation does nothing. Override this method in derived classes to achieve your custom behavior.
The calling routine, DBTool.populateTables(), will set dbName on each object, so you can get it from getDataContext(), and you can assume that the user for the population action is Admin.
populateDefaultValues in class DBObjectDBException
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||