com.caucho.amber.entity
Class RowInsertCompletion

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

public class RowInsertCompletion
extends java.lang.Object
implements AmberCompletion

Code to update the cache value on the completion of a transaction after an INSERT statement.


Constructor Summary
RowInsertCompletion(java.lang.String table)
           
 
Method Summary
 boolean complete(EntityType rootType, 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowInsertCompletion

public RowInsertCompletion(java.lang.String table)
Method Detail

complete

public boolean complete(EntityType rootType,
                        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