com.caucho.amber.entity
Class RowInvalidateCompletion

java.lang.Object
  extended by com.caucho.amber.entity.RowInvalidateCompletion
All Implemented Interfaces:
AmberCompletion

public class RowInvalidateCompletion
extends java.lang.Object
implements AmberCompletion

Code to update the cache value on the completion of a transaction.


Constructor Summary
RowInvalidateCompletion(java.lang.String table, java.lang.Object key)
           
 
Method Summary
 boolean complete(EntityType entityType, java.lang.Object key, EntityItem entityItem)
          Code when the transaction completes.
 boolean complete(ResultSetCacheChunk chunk)
          Code to invalidate the query.
 boolean equals(java.lang.Object o)
          Returns true for equality.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowInvalidateCompletion

public RowInvalidateCompletion(java.lang.String table,
                               java.lang.Object key)
Method Detail

complete

public boolean complete(EntityType entityType,
                        java.lang.Object key,
                        EntityItem entityItem)
Code when the transaction completes.

Specified by:
complete in interface AmberCompletion
Returns:
true if the entry should be deleted.

complete

public boolean complete(ResultSetCacheChunk chunk)
Code to invalidate the query.

Specified by:
complete in interface AmberCompletion
Returns:
true if the entry should be deleted.

equals

public boolean equals(java.lang.Object o)
Returns true for equality.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object