Interface ITransactionResource


@Scriptable public interface ITransactionResource
  • Method Details

    • getCommitPriority

      int getCommitPriority()
      The commit and rollback priority order. A transaction resource with a higher value will committed/rolled back first.
      Returns:
      The commit/rollback priority order.
    • requestCommit

      boolean requestCommit() throws Exception
      Throws:
      Exception
    • commit

      void commit() throws Exception
      Two calls of the commit must not do the same. (Clear transactions operations)
      Throws:
      Exception
    • rollback

      void rollback() throws Exception
      Two calls of the rollback must not do the same. (Clear transactions operations)
      Throws:
      Exception
    • getManagedObject

      Object getManagedObject()
    • getLastError

      Exception getLastError()
    • cancelTransaction

      void cancelTransaction() throws Exception
      Resets the transaction.

      After that call commit and rollback should do nothing.

      Only relevant on two phase commits

      .
      Throws:
      Exception