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 Details

    • 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