org.tranql.intertxcache
Class TxCache

java.lang.Object
  extended byorg.tranql.intertxcache.TxCache
All Implemented Interfaces:
Cache

public class TxCache
extends java.lang.Object
implements Cache

Version:
$Revision: 341 $ $Date: 2006-06-04 00:16:22 +0200 (Sun, 04 Jun 2006) $

Constructor Summary
TxCache(Cache next)
           
 
Method Summary
 void clean()
           
 boolean get(javax.transaction.Transaction tx, CacheRow target, int[] indices)
           
 CacheRow get(javax.transaction.Transaction tx, GlobalIdentity id)
           
 void put(javax.transaction.Transaction tx, CacheRow row)
           
 void release(GlobalIdentity id)
           
 void remove(javax.transaction.Transaction tx, GlobalIdentity id)
           
 void set(javax.transaction.Transaction tx, CacheRow target, int[] indices)
           
 void transactionEnd(javax.transaction.Transaction tx, int status, java.util.Collection rows)
           
 void transactionStart(javax.transaction.Transaction tx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxCache

public TxCache(Cache next)
Method Detail

transactionStart

public void transactionStart(javax.transaction.Transaction tx)
                      throws CacheException
Specified by:
transactionStart in interface Cache
Throws:
CacheException

transactionEnd

public void transactionEnd(javax.transaction.Transaction tx,
                           int status,
                           java.util.Collection rows)
                    throws CacheException
Specified by:
transactionEnd in interface Cache
Throws:
CacheException

put

public void put(javax.transaction.Transaction tx,
                CacheRow row)
         throws CacheException
Specified by:
put in interface Cache
Throws:
CacheException

set

public void set(javax.transaction.Transaction tx,
                CacheRow target,
                int[] indices)
         throws CacheException
Specified by:
set in interface Cache
Throws:
CacheException

get

public CacheRow get(javax.transaction.Transaction tx,
                    GlobalIdentity id)
             throws CacheException
Specified by:
get in interface Cache
Throws:
CacheException

get

public boolean get(javax.transaction.Transaction tx,
                   CacheRow target,
                   int[] indices)
            throws CacheException
Specified by:
get in interface Cache
Throws:
CacheException

remove

public void remove(javax.transaction.Transaction tx,
                   GlobalIdentity id)
            throws CacheException
Specified by:
remove in interface Cache
Throws:
CacheException

release

public void release(GlobalIdentity id)
             throws CacheException
Specified by:
release in interface Cache
Throws:
CacheException

clean

public void clean()
           throws CacheException
Specified by:
clean in interface Cache
Throws:
CacheException


Copyright © -2006 The Codehaus. All Rights Reserved.