|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.sqlConstruction.ExpandingSQLObjectCache
Maintain a collection of SQLObject objects. There is a cache per thread. This elminates the need to have synchronized checkin and check out for getting and returning cached objects. Of course, this could pose a problem if one thread checks out objects, and the other returns objects. If that is your situation, an instance of this class must be managed by your application and not via the static methods in this class.
Constructor Summary | |
ExpandingSQLObjectCache()
Initialize this instance to be ready to cache Objects. |
Method Summary | |
SQLObject |
getSQLObjectFromCacheWork()
The entry point to the instance related to the current thread, and to get the cached object. |
void |
returnSQLObjectToCacheWork(SQLObject value)
Return a checked out instance to this cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpandingSQLObjectCache()
Method Detail |
public SQLObject getSQLObjectFromCacheWork()
public void returnSQLObjectToCacheWork(SQLObject value)
value
- ObjectModifed - Hopefully and instance that was obtained via the getSQLObjectCacheWork method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |