|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.cache.ObjectCacheJCSImpl
This local ObjectCache implementation using
turbine-JCS to cache objects is primarily for intern use in
conjunction with ObjectCacheJCSPerClassImpl implementation. If
used as main ObjectCache all cached objects will be cached
under the same JCS region name (see JCSHelper.DEFAULT_REGION).
Implementation configuration properties:
| Property Key | Property Values |
| - | - |
| Constructor Summary | |
ObjectCacheJCSImpl(PersistenceBroker broker,
java.util.Properties prop)
|
|
ObjectCacheJCSImpl(java.lang.String name)
Constructor used by the ObjectCacheJCSPerClassImpl |
|
| Method Summary | |
void |
cache(Identity oid,
java.lang.Object obj)
makes object obj persistent to the Objectcache under the key oid. |
void |
clear()
clear the ObjectCache. |
java.lang.String |
getRegionName()
|
java.lang.Object |
lookup(Identity oid)
Lookup object with Identity oid in objectTable. |
void |
remove(Identity oid)
removes an Object from the cache. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ObjectCacheJCSImpl(PersistenceBroker broker,
java.util.Properties prop)
public ObjectCacheJCSImpl(java.lang.String name)
ObjectCacheJCSPerClassImpl
| Method Detail |
public java.lang.String getRegionName()
public void cache(Identity oid,
java.lang.Object obj)
cache in interface ObjectCachepublic java.lang.Object lookup(Identity oid)
lookup in interface ObjectCachepublic void remove(Identity oid)
remove in interface ObjectCacheoid - the Identity of the object to be removed.public void clear()
clear in interface ObjectCachepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||