net.sourceforge.hivetranse.transaction
Interface TransactionEventListener

All Superinterfaces:
java.util.EventListener

public interface TransactionEventListener
extends java.util.EventListener

Listener interface for TransactionService-related events. Any service interested in those events should register itself as a listener.

In general, application code does not need to be notified by this kind of events, actually this feature is more used internally by various implementations of TransactionService.

Please not that this interface may change later if necessary (while developping actual implementations for TransactionService).

Author:
Jean-Francois Poilpret

Method Summary
 void afterNewTransactionBegins()
          Called immediately after a new transaction has been created by the TransactionService.
 void afterTransactionEnds(boolean committed)
          Called immediately after the current transaction has been closed by the TransactionService.
 void beforeNewTransactionBegins()
          Called immediately before a new transaction is created by the TransactionService.
 void beforeTransactionEnds(boolean committed)
          Called immediately before the current transaction is to be closed by the TransactionService.
 

Method Detail

beforeNewTransactionBegins

void beforeNewTransactionBegins()
Called immediately before a new transaction is created by the TransactionService.


afterNewTransactionBegins

void afterNewTransactionBegins()
Called immediately after a new transaction has been created by the TransactionService.


beforeTransactionEnds

void beforeTransactionEnds(boolean committed)
Called immediately before the current transaction is to be closed by the TransactionService.

Parameters:
committed - true if the current transaction will be committed, false if it will be rolled back

afterTransactionEnds

void afterTransactionEnds(boolean committed)
Called immediately after the current transaction has been closed by the TransactionService.

Parameters:
committed - true if the current transaction has been committed, false if it has been rolled back