SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

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


Constructor Summary
QueryKeyExpirationListener(QueryCache cache)
           
 
Method Summary
 void eventOccurred(EventObject event)
           
 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.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryKeyExpirationListener

public QueryKeyExpirationListener(QueryCache cache)
Method Detail

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

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.