|
|||||||||
| Home >> All >> com >> jcorporate >> expresso >> core >> [ dbobj overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.jcorporate.expresso.core.dbobj
Class HistAuditSecuredDBObject

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.AuditedSecuredDBObject
com.jcorporate.expresso.core.dbobj.HistAuditSecuredDBObject
- All Implemented Interfaces:
- com.jcorporate.expresso.core.cache.Cacheable, com.jcorporate.expresso.core.dataobjects.ContextNested, com.jcorporate.expresso.core.dataobjects.DataObject, LookupInterface, com.jcorporate.expresso.core.dataobjects.Securable, java.io.Serializable
- public class HistAuditSecuredDBObject
- extends AuditedSecuredDBObject
HistAuditSecuredDBObject is an object that is audited (as in the AuditedSecuredDBObject) and is also archived in a history table that stores the entire record on either ADD or UPDATE.
A HistAuditSecuredDBObject MUST have the following fields defined:
| 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 |
anyFieldsToRetrieveMulti, 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 | |
HistAuditSecuredDBObject()
Construct an audit secured DBObject |
|
HistAuditSecuredDBObject(com.jcorporate.expresso.core.db.DBConnection theConnection)
Constructor |
|
| Method Summary | |
void |
add()
On the add method, always write an entry to the history table. |
java.lang.String |
getHistoryTableClassName()
The assumption here is that the history table DBObject is called objectname + "History", such as "VendorHistory" for the DBObject "Vendor". |
void |
update()
On the update method, always write an entry to the history table. |
private void |
writeRecordToHistory()
Method to write an entry to the History table. |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.AuditedSecuredDBObject |
delete |
| Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, deleteAll, find, getRequestingUid, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid |
| 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 |
HistAuditSecuredDBObject
public HistAuditSecuredDBObject()
throws com.jcorporate.expresso.core.db.DBException
- Construct an audit secured DBObject
HistAuditSecuredDBObject
public HistAuditSecuredDBObject(com.jcorporate.expresso.core.db.DBConnection theConnection) throws com.jcorporate.expresso.core.db.DBException
- Constructor
| Method Detail |
writeRecordToHistory
private void writeRecordToHistory()
throws com.jcorporate.expresso.core.db.DBException
- Method to write an entry to the History table.
getHistoryTableClassName
public java.lang.String getHistoryTableClassName()
- The assumption here is that the history table DBObject is called
objectname + "History", such as "VendorHistory" for the DBObject "Vendor".
add
public void add()
throws com.jcorporate.expresso.core.db.DBException
- On the add method, always write an entry to the history table.
- Specified by:
addin interfacecom.jcorporate.expresso.core.dataobjects.DataObject- Overrides:
addin classAuditedSecuredDBObject
update
public void update()
throws com.jcorporate.expresso.core.db.DBException
- On the update method, always write an entry to the history table.
- Specified by:
updatein interfacecom.jcorporate.expresso.core.dataobjects.DataObject- Overrides:
updatein classAuditedSecuredDBObject
|
|||||||||
| Home >> All >> com >> jcorporate >> expresso >> core >> [ dbobj overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC