net.sf.farrago.session
Interface FarragoSessionTxnListener

All Known Implementing Classes:
FarragoQueryTest.TxnListener

public interface FarragoSessionTxnListener

FarragoSessionTxnListener defines an interface for listening to events on a FarragoSessionTxnMgr.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/session/FarragoSessionTxnListener.java#8 $
Author:
John V. Sichi

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.
 

Method Detail

transactionBegun

void transactionBegun(FarragoSession session,
                      FarragoSessionTxnId txnId)
Notifies listener of a call to FarragoSessionTxnMgr.beginTxn.

Parameters:
session - session initiating transaction
txnId - new transaction ID

tableAccessed

void tableAccessed(FarragoSessionTxnId txnId,
                   List<String> localTableName,
                   TableAccessMap.Mode accessType)
Notifies listener of the effect of a call to FarragoSessionTxnMgr.accessTable.

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

void transactionEnded(FarragoSessionTxnId txnId,
                      FarragoSessionTxnEnd endType)
Notifies listener of a call to FarragoSessionTxnMgr.endTxn.

Parameters:
txnId - ID of ending transaction
endType - how transaction is ending