Package 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 <chemit@codelutin.com>
-
Method Summary
Modifier and TypeMethodDescriptionObtains the internal transaction.voidsetTransaction(TopiaContext transaction) Put in the instance, the given transaction.
-
Method Details
-
getTransaction
TopiaContext getTransaction()Obtains the internal transaction. If no transaction was opened, can return thenullobject.- Returns:
- the current transaction (can be null or closed...).
-
setTransaction
Put in the instance, the given transaction.- Parameters:
transaction- the transaction to push
-