| java.lang.Object com.jcorporate.expresso.core.dbobj.CacheUtils
CacheUtils | public class CacheUtils (Code) | | Utility methods for putting a DBObject into a cache.
author: Michael Rimov |
Method Summary | |
public void | addToCache(DBObject theDBObj) When using basic caching, this method is used to add a new DB object to the
cache, where it is later used when retrieveing data instead of going directly
to the database. | public void | addUnmodifiedToCache(DBObject theDBObj) Adds a non-modified object to the cache. |
CacheUtils | public CacheUtils()(Code) | | |
addToCache | public void addToCache(DBObject theDBObj) throws DBException(Code) | | When using basic caching, this method is used to add a new DB object to the
cache, where it is later used when retrieveing data instead of going directly
to the database. This functionality can be controlled with the "dbCache"
property in the properties file(s).
Parameters: theDBObj - com.jcorporate.expresso.core.dbobj.DBObject The object to becached throws: DBException - upon add error (either Cache related or dbobject related) |
addUnmodifiedToCache | public void addUnmodifiedToCache(DBObject theDBObj) throws DBException(Code) | | Adds a non-modified object to the cache. This is most often called
after DataObject.retrieve(). No related cache notification will occur
when this happens
Parameters: theDBObj - the object to add to the cache. throws: DBException - upon add error (either Cache related or dbobject related) |
|
|