org.apache.ojb.broker.cache
Interface CacheFilter

All Known Implementing Classes:
CacheFilterClassImpl, CacheFilterPackageImpl

public interface CacheFilter


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.
 

Method Detail

beforeCache

public 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.


beforeLookup

public 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.


beforeRemove

public boolean beforeRemove(Identity oid)
Called before an object was removed from cache - If false was returned the object was not removed from in cache.


getObjectCache

public ObjectCache getObjectCache()
Returns the underlying ObjectCache implemenation.



(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.0, 2004-06-25