com.caucho.amber.query
Class CacheUpdate

java.lang.Object
  extended by com.caucho.amber.query.CacheUpdate
Direct Known Subclasses:
TableCacheUpdate

public abstract class CacheUpdate
extends java.lang.Object

Callback when an entity is created, destroyed or modified.


Constructor Summary
protected CacheUpdate(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.
protected  void update()
          Update the query.
 void update(Entity object)
          Called when an entity is deleted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheUpdate

protected CacheUpdate(CachedQuery query)
Method Detail

add

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


delete

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


update

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


update

protected void update()
Update the query.