com.solarmetric.kodo.runtime.datacache.query
Class QueryKeyExpirationListener
java.lang.Object
|
+--com.solarmetric.kodo.runtime.datacache.query.QueryKeyExpirationListener
- All Implemented Interfaces:
- com.solarmetric.util.Listener
- class QueryKeyExpirationListener
- extends Object
- implements com.solarmetric.util.Listener
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryKeyExpirationListener
public QueryKeyExpirationListener(QueryCache cache)
registerQueryKey
public void registerQueryKey(Object key,
QueryKey qk)
- Registers
qk with oid so that
notification of expiration of oid can potentially
result in the query associated with qk being
expired. This is useful because if a substantial number of
objects in qk's result list are not in memory, it
may actually be more efficient to execute the query against
the database, rather than executing one-off queries along the
way.
eventOccurred
public void eventOccurred(EventObject event)
- Specified by:
eventOccurred in interface com.solarmetric.util.Listener
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.