org.nuiton.topia.framework
Interface TopiaTransactionAware


public interface TopiaTransactionAware

Use this contract on a object which use a TopiaContext as a transaction.

The method getTransaction() returns the internal transaction used.

the method setTransaction(TopiaContext) put the internal transaction.

Since:
2.6.1
Author:
tchemit

Method Summary
 TopiaContext getTransaction()
          Obtains the internal transaction.
 void setTransaction(TopiaContext transaction)
          Put in the instance, the given transaction.
 

Method Detail

getTransaction

TopiaContext getTransaction()
Obtains the internal transaction.

If no transaction was opened, can return the null object.

Returns:
the current transaction (can be null or closed...).

setTransaction

void setTransaction(TopiaContext transaction)
Put in the instance, the given transaction.

Parameters:
transaction - the transaction to push


Copyright © 2004-2011 CodeLutin. All Rights Reserved.