com.caucho.amber.entity
Interface AmberCompletion

All Known Implementing Classes:
RowInsertCompletion, RowInvalidateCompletion, TableInvalidateCompletion

public interface AmberCompletion

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


Method Summary
 boolean complete(EntityType rootType, java.lang.Object key, EntityItem entityItem)
          Code when the transaction completes.
 boolean complete(ResultSetCacheChunk cacheChunk)
          Code to update caches when a transaction completes.
 

Method Detail

complete

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

Returns:
true if the entry should be deleted.

complete

boolean complete(ResultSetCacheChunk cacheChunk)
Code to update caches when a transaction completes.

Returns:
true if the entry should be deleted.