Interface ITransaction


@Scriptable public interface ITransaction
Interface for transactions managed by the transaction manager.
  • Method Details

    • end

      void end() throws Exception
      End Transaction
      Throws:
      Exception
    • commit

      void commit() throws Exception
      Commit Transaction
      Throws:
      Exception
    • rollback

      void rollback() throws Exception
      Rollback Transaction
      Throws:
      Exception
    • setRollbackOnly

      void setRollbackOnly()
      Sets the end mode for this transaction. If true, a rollback is performed on calling end().
    • isRollbackOnly

      boolean isRollbackOnly()
      Get the end mode for this transaction.
      Returns:
      The end mode.
    • enlistResource

      boolean enlistResource(ITransactionResource p_res)
      Adds a transaction resource to this transaction.
      Parameters:
      p_res - transaction resource
      Returns:
      true, if enlisting is successfull, otherwise false
    • delistResource

      boolean delistResource(ITransactionResource p_res)
      Removes a transaction resource from this transaction.
      Parameters:
      p_res - transaction resource
      Returns:
      true, if delisting is successfull, otherwise false
    • enlistResource

      boolean enlistResource(Connection p_conn)
      Convencience method for enlisting JDBC connections.
      Parameters:
      p_conn - connection to enlist
      Returns:
      true, if enlisting is successfull, otherwise false
    • delistResource

      boolean delistResource(Connection p_conn)
      Convencience method for delisting JDBC connections.
      Parameters:
      p_conn - connection to delist
      Returns:
      true, if delisting is successfull, otherwise false
    • addAfterCommitAction

      void addAfterCommitAction(IAfterCommitAction p_action)
      Add an after-commit action to this transaction
      Parameters:
      p_action - The action to be added.