|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.db.cache.FactoryCacheAdapter
org.norther.tammi.root.ojb.cache.OJBCacheAdapter
public class OJBCacheAdapter
An adapter to the OJB factory cache.
Note that it works only when separately activated, typically from the local part of the two level cache system.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.root.db.cache.FactoryCacheAdapter |
|---|
ALLOW_EXPIRED_PROPERTY, AUTO_REFRESH_DECLINED_PROPERTY, DEFAULT_EXPIRATION_TIME_PROPERTY, DISCARD_OVERLOADED_PROPERTY, EXPIRATION_LIMIT_PROPERTY, EXPIRATION_SLEEP_INTERVAL_PROPERTY, EXPIRATION_THRESHOLD_PROPERTY, MAX_EXPIRATION_TIME_PROPERTY |
| Fields inherited from interface org.apache.ojb.broker.cache.ObjectCacheInternal |
|---|
TYPE_CACHED_READ, TYPE_NEW_MATERIALIZED, TYPE_TEMP, TYPE_UNKNOWN, TYPE_WRITE |
| Constructor Summary | |
|---|---|
OJBCacheAdapter(PersistenceBroker broker,
Properties props)
Constructs a new adapter. |
|
| Method Summary | |
|---|---|
void |
activate()
Activates the cache. |
void |
cache(Identity oid,
Object value)
|
boolean |
cacheIfNew(Identity oid,
Object value)
|
void |
clear()
|
void |
doInternalCache(Identity oid,
Object value,
int type)
|
protected ConcurrentMap |
getClientCache()
Gets the client cache. |
boolean |
isActivated()
Checks whether activated. |
Object |
lookup(Identity oid)
|
void |
remove(Identity oid)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OJBCacheAdapter(PersistenceBroker broker,
Properties props)
broker - the persistence broker.props - the configuration properties.| Method Detail |
|---|
public Object lookup(Identity oid)
lookup in interface ObjectCache
public void cache(Identity oid,
Object value)
cache in interface ObjectCachepublic void remove(Identity oid)
remove in interface ObjectCachepublic void clear()
clear in interface ObjectCache
public void doInternalCache(Identity oid,
Object value,
int type)
doInternalCache in interface ObjectCacheInternal
public boolean cacheIfNew(Identity oid,
Object value)
cacheIfNew in interface ObjectCacheInternalpublic boolean isActivated()
public void activate()
protected ConcurrentMap getClientCache()
getClientCache in class FactoryCacheAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||