Interface ITransactionResource


  • @Scriptable
    public interface ITransactionResource
    • Method Detail

      • 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.
      • 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()
      • 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