org.tranql.cache
Class SimpleFlushStrategy

java.lang.Object
  extended byorg.tranql.cache.SimpleFlushStrategy
All Implemented Interfaces:
CacheFlushStrategy

public class SimpleFlushStrategy
extends java.lang.Object
implements CacheFlushStrategy

Very basic flush strategy that assumes tables are independent and does not factor in dependencies caused by relationships.

Version:
$Revision: 276 $ $Date: 2005-10-01 10:41:03 +0200 (Sat, 01 Oct 2005) $

Constructor Summary
SimpleFlushStrategy()
           
 
Method Summary
 void flush(java.util.Map cache)
           
 void rowAdded(CacheRow row)
           
 void rowAssociated(CacheRow row)
           
 void rowModified(CacheRow row)
           
 void rowRemoved(CacheRow row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFlushStrategy

public SimpleFlushStrategy()
Method Detail

rowAssociated

public void rowAssociated(CacheRow row)
Specified by:
rowAssociated in interface CacheFlushStrategy

rowAdded

public void rowAdded(CacheRow row)
Specified by:
rowAdded in interface CacheFlushStrategy

rowModified

public void rowModified(CacheRow row)
Specified by:
rowModified in interface CacheFlushStrategy

rowRemoved

public void rowRemoved(CacheRow row)
Specified by:
rowRemoved in interface CacheFlushStrategy

flush

public void flush(java.util.Map cache)
           throws QueryException
Specified by:
flush in interface CacheFlushStrategy
Throws:
QueryException


Copyright © -2006 The Codehaus. All Rights Reserved.