java.lang.Object
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple
com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple
All Implemented Interfaces:
Transaction, jakarta.transaction.Transaction
Direct Known Subclasses:
TransactionImple

public class TransactionImple extends TransactionImple
  • Constructor Details

    • TransactionImple

      public TransactionImple(int timeout)
      Create a new transaction with the specified timeout.
    • TransactionImple

      public TransactionImple(AtomicAction act)
  • Method Details

    • commit

      public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, jakarta.transaction.SystemException, IllegalStateException
      This is a subordinate transaction, so any attempt to commit it or roll it back directly, should fail.
      Specified by:
      commit in interface jakarta.transaction.Transaction
      Overrides:
      commit in class TransactionImple
      Throws:
      jakarta.transaction.RollbackException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicRollbackException
      SecurityException
      jakarta.transaction.SystemException
      IllegalStateException
    • rollback

      public void rollback() throws IllegalStateException, SecurityException, jakarta.transaction.SystemException
      This is a subordinate transaction, so any attempt to commit it or roll it back directly, should fail.
      Specified by:
      rollback in interface jakarta.transaction.Transaction
      Overrides:
      rollback in class TransactionImple
      Throws:
      IllegalStateException
      SecurityException
      jakarta.transaction.SystemException
    • doPrepare

      public int doPrepare()
    • doCommit

      public boolean doCommit() throws IllegalStateException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, jakarta.transaction.SystemException
      Throws:
      IllegalStateException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicRollbackException
      jakarta.transaction.SystemException
    • doRollback

      public void doRollback() throws IllegalStateException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicCommitException, jakarta.transaction.HeuristicRollbackException, jakarta.transaction.SystemException
      Throws:
      IllegalStateException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicCommitException
      jakarta.transaction.HeuristicRollbackException
      jakarta.transaction.SystemException
    • doForget

      public void doForget() throws IllegalStateException
      Deprecated.
      Only called from a test
      Throws:
      IllegalStateException
    • doOnePhaseCommit

      public void doOnePhaseCommit() throws IllegalStateException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.SystemException, jakarta.transaction.RollbackException
      Throws:
      IllegalStateException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.SystemException
      jakarta.transaction.RollbackException
    • doBeforeCompletion

      public boolean doBeforeCompletion() throws jakarta.transaction.SystemException
      Throws:
      jakarta.transaction.SystemException
    • toString

      public String toString()
      Overrides:
      toString in class TransactionImple
    • commitAndDisassociate

      protected void commitAndDisassociate() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, jakarta.transaction.SystemException, IllegalStateException
      Description copied from class: TransactionImple
      Does the same as commit, but also changes the thread-to-tx association.
      Overrides:
      commitAndDisassociate in class TransactionImple
      Throws:
      jakarta.transaction.RollbackException
      jakarta.transaction.HeuristicMixedException
      jakarta.transaction.HeuristicRollbackException
      SecurityException
      jakarta.transaction.SystemException
      IllegalStateException
    • rollbackAndDisassociate

      protected void rollbackAndDisassociate() throws IllegalStateException, SecurityException, jakarta.transaction.SystemException
      Description copied from class: TransactionImple
      Does the same as rollback, but also changes the thread-to-tx association.
      Overrides:
      rollbackAndDisassociate in class TransactionImple
      Throws:
      IllegalStateException
      SecurityException
      jakarta.transaction.SystemException
    • activated

      public boolean activated()
      Because of recovery, it is possible that a transaction may not be able to activate itself from the log initially, forcing us to retry later.
      Returns:
      true if the transaction was activated, false otherwise.
    • createXid

      protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
      Overrides:
      createXid in class TransactionImple
      Throws:
      IOException
      ObjectStoreException