org.acmsl.queryj.dao
Interface TransactionToken

All Known Implementing Classes:
DataSourceTransactionToken

public interface TransactionToken

Represents a transaction runtime environment. The one that created it manages the transaction.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro Armend?riz

Method Summary
 void beginTransaction()
          Gets notified whenever the transaction starts.
 void endTransaction()
          Takes into account that the transaction is over.
 boolean isRollbackPending()
          Checks the need for a rollback of the whole transaction.
 boolean isTransactionAlive()
          Checks if there's any active transaction.
 void release()
          Releases the transaction.
 void setRollbackPending(boolean flag)
          Sets the need for a rollback of the whole transaction.
 

Method Detail

isTransactionAlive

public boolean isTransactionAlive()
Checks if there's any active transaction.

Returns:
true if a transaction is active.

beginTransaction

public void beginTransaction()
Gets notified whenever the transaction starts.


release

public void release()
Releases the transaction.


endTransaction

public void endTransaction()
Takes into account that the transaction is over.


setRollbackPending

public void setRollbackPending(boolean flag)
Sets the need for a rollback of the whole transaction.

Parameters:
flag - to indicate to rollback the transaction.

isRollbackPending

public boolean isRollbackPending()
Checks the need for a rollback of the whole transaction.

Returns:
such information.


Copyright © 2003 ACM S.L.. All Rights Reserved.