gov.nih.nci.caarray.services.util.cache
Class ObjectCacheEHCachePerClassImpl
java.lang.Object
org.apache.ojb.broker.cache.AbstractMetaCache
gov.nih.nci.caarray.services.util.cache.ObjectCacheEHCachePerClassImpl
- All Implemented Interfaces:
- org.apache.ojb.broker.cache.ObjectCache
public class ObjectCacheEHCachePerClassImpl
- extends org.apache.ojb.broker.cache.AbstractMetaCache
This has been adapted to use EHCache.
A global ObjectCache
implementation using a EHcache region for
each class. Each class name was associated with a dedicated
ObjectCacheEHCacheImpl
instance to cache given objects.
This allows to define EHcache cache region configuration properties
for each used class in EHcache configuration files.
Implementation configuration properties:
Property Key |
Property Values |
- |
-
|
Fields inherited from class org.apache.ojb.broker.cache.AbstractMetaCache |
METHOD_CACHE, METHOD_LOOKUP, METHOD_REMOVE |
Constructor Summary |
ObjectCacheEHCachePerClassImpl(org.apache.ojb.broker.PersistenceBroker broker,
java.util.Properties prop)
Constructor for the MetaObjectCachePerClassImpl object |
Method Summary |
void |
clear()
Clears the cache |
org.apache.ojb.broker.cache.ObjectCache |
getCache(org.apache.ojb.broker.Identity oid,
java.lang.Object obj,
int methodCall)
|
Methods inherited from class org.apache.ojb.broker.cache.AbstractMetaCache |
cache, lookup, remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectCacheEHCachePerClassImpl
public ObjectCacheEHCachePerClassImpl(org.apache.ojb.broker.PersistenceBroker broker,
java.util.Properties prop)
- Constructor for the MetaObjectCachePerClassImpl object
getCache
public org.apache.ojb.broker.cache.ObjectCache getCache(org.apache.ojb.broker.Identity oid,
java.lang.Object obj,
int methodCall)
- Specified by:
getCache
in class org.apache.ojb.broker.cache.AbstractMetaCache
clear
public void clear()
- Clears the cache