org.tranql.cache
Class EnforceRelationshipsFlushStrategy

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

public class EnforceRelationshipsFlushStrategy
extends java.lang.Object
implements CacheFlushStrategy

This flushing strategy enforces the relationships between the CacheTable instances to be flushed; it enforces the foreign key constraints that may exist at the database level.

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

Constructor Summary
EnforceRelationshipsFlushStrategy()
           
 
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

EnforceRelationshipsFlushStrategy

public EnforceRelationshipsFlushStrategy()
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.