com.caucho.amber.query
Class TableCacheUpdate

java.lang.Object
  extended by com.caucho.amber.query.CacheUpdate
      extended by com.caucho.amber.query.TableCacheUpdate

public class TableCacheUpdate
extends CacheUpdate

Update callback where any addition or deletion modifies the cached query.


Constructor Summary
protected TableCacheUpdate(CachedQuery query)
           
 
Method Summary
 void add(Entity obj)
          Called when an entity is added.
 void delete(java.lang.Object key)
          Called when an entity is deleted.
 void update(Entity object)
          Called when an entity is deleted.
 
Methods inherited from class com.caucho.amber.query.CacheUpdate
update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCacheUpdate

protected TableCacheUpdate(CachedQuery query)
Method Detail

add

public void add(Entity obj)
Called when an entity is added.

Overrides:
add in class CacheUpdate

delete

public void delete(java.lang.Object key)
Called when an entity is deleted.

Overrides:
delete in class CacheUpdate

update

public void update(Entity object)
Called when an entity is deleted.

Overrides:
update in class CacheUpdate