net.sf.farrago.test
Class FarragoQueryTest.TxnListener

java.lang.Object
  extended by net.sf.farrago.test.FarragoQueryTest.TxnListener
All Implemented Interfaces:
FarragoSessionTxnListener
Enclosing class:
FarragoQueryTest

private static class FarragoQueryTest.TxnListener
extends Object
implements FarragoSessionTxnListener


Field Summary
(package private)  List<Object> events
           
 
Constructor Summary
FarragoQueryTest.TxnListener()
           
 
Method Summary
 void tableAccessed(FarragoSessionTxnId txnId, List<String> localTableName, TableAccessMap.Mode accessType)
          Notifies listener of the effect of a call to FarragoSessionTxnMgr.accessTable.
 void transactionBegun(FarragoSession session, FarragoSessionTxnId txnId)
          Notifies listener of a call to FarragoSessionTxnMgr.beginTxn.
 void transactionEnded(FarragoSessionTxnId txnId, FarragoSessionTxnEnd endType)
          Notifies listener of a call to FarragoSessionTxnMgr.endTxn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

events

List<Object> events
Constructor Detail

FarragoQueryTest.TxnListener

FarragoQueryTest.TxnListener()
Method Detail

transactionBegun

public void transactionBegun(FarragoSession session,
                             FarragoSessionTxnId txnId)
Description copied from interface: FarragoSessionTxnListener
Notifies listener of a call to FarragoSessionTxnMgr.beginTxn.

Specified by:
transactionBegun in interface FarragoSessionTxnListener
Parameters:
session - session initiating transaction
txnId - new transaction ID

tableAccessed

public void tableAccessed(FarragoSessionTxnId txnId,
                          List<String> localTableName,
                          TableAccessMap.Mode accessType)
Description copied from interface: FarragoSessionTxnListener
Notifies listener of the effect of a call to FarragoSessionTxnMgr.accessTable.

Specified by:
tableAccessed in interface FarragoSessionTxnListener
Parameters:
txnId - ID of transaction in which access is occurring
localTableName - qualified name of table as it is known in the local catalog
accessType - type of table access

transactionEnded

public void transactionEnded(FarragoSessionTxnId txnId,
                             FarragoSessionTxnEnd endType)
Description copied from interface: FarragoSessionTxnListener
Notifies listener of a call to FarragoSessionTxnMgr.endTxn.

Specified by:
transactionEnded in interface FarragoSessionTxnListener
Parameters:
txnId - ID of ending transaction
endType - how transaction is ending