java.lang.Object
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction
Direct Known Subclasses:
TransactionManagerImple, UserTransactionImple

public class BaseTransaction extends Object
  • Constructor Details

    • BaseTransaction

      protected BaseTransaction()
  • Method Details

    • begin

      public void begin() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.NotSupportedException
      jakarta.transaction.SystemException
    • commit

      public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, jakarta.transaction.SystemException
      We will never throw a HeuristicRollbackException because if we get a HeuristicRollback from a resource, and can successfully rollback the other resources, this is then the same as having simply been forced to rollback the transaction during phase 1. The OTS interfaces do not allow a differentiation.
      Throws:
      jakarta.transaction.RollbackException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicRollbackException
      SecurityException
      IllegalStateException
      jakarta.transaction.SystemException
    • rollback

      public void rollback() throws IllegalStateException, SecurityException, jakarta.transaction.SystemException
      Throws:
      IllegalStateException
      SecurityException
      jakarta.transaction.SystemException
    • setRollbackOnly

      public void setRollbackOnly() throws IllegalStateException, jakarta.transaction.SystemException
      Throws:
      IllegalStateException
      jakarta.transaction.SystemException
    • getStatus

      public int getStatus() throws jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.SystemException
    • setTransactionTimeout

      public void setTransactionTimeout(int seconds) throws jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.SystemException
    • getTimeout

      public int getTimeout() throws jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.SystemException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createSubordinate

      public TransactionImple createSubordinate() throws jakarta.transaction.NotSupportedException, jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.NotSupportedException
      jakarta.transaction.SystemException
    • commitAsync

      public Future<Void> commitAsync()
    • wrap

      public static <T> Future<T> wrap(Callable<T> callable)