|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.cache.CacheFilterClassImpl
A CacheFilter implementation for filtering objects
before cached, using custom attribute cacheable
in class-descriptor in repository file.
Example:
Add this custom attribute to your class-descriptor to avoid
caching of the class.
<attribute
attribute-name="cacheable"
attribute-value="false"/>
| Field Summary | |
static java.lang.String |
CACHEABLE
|
| Constructor Summary | |
CacheFilterClassImpl(PersistenceBroker broker,
ObjectCache cache)
|
|
| Method Summary | |
boolean |
beforeCache(Identity oid,
java.lang.Object obj)
Called before an object was put in cache - If false
was returned the object was not put in cache. |
boolean |
beforeLookup(Identity oid)
Called before an object was looked up in cache - If false
was returned the object was not looked up in cache. |
boolean |
beforeRemove(Identity oid)
Called before an object was removed from cache - If false
was returned the object was not removed from in cache. |
ObjectCache |
getObjectCache()
Returns the underlying ObjectCache implemenation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CACHEABLE
| Constructor Detail |
public CacheFilterClassImpl(PersistenceBroker broker,
ObjectCache cache)
| Method Detail |
public boolean beforeCache(Identity oid,
java.lang.Object obj)
CacheFilterfalse
was returned the object was not put in cache.
beforeCache in interface CacheFilterpublic boolean beforeLookup(Identity oid)
CacheFilterfalse
was returned the object was not looked up in cache.
beforeLookup in interface CacheFilterpublic boolean beforeRemove(Identity oid)
CacheFilterfalse
was returned the object was not removed from in cache.
beforeRemove in interface CacheFilterpublic ObjectCache getObjectCache()
CacheFilterObjectCache implemenation.
getObjectCache in interface CacheFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||