java.lang.Object
com.arjuna.ats.internal.jta.transaction.jts.jca.TxWorkManager

public class TxWorkManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addWork(jakarta.resource.spi.work.Work work, jakarta.transaction.Transaction tx)
    Add the specified work unit to the specified transaction.
    static jakarta.resource.spi.work.Work
    getWork(jakarta.transaction.Transaction tx)
    Get the work currently associated with the transaction.
    static boolean
    hasWork(jakarta.transaction.Transaction tx)
    Does the transaction have any work associated with it?
    static void
    removeWork(jakarta.resource.spi.work.Work work, jakarta.transaction.Transaction tx)
    Remove the specified unit of work from the transaction.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TxWorkManager

      public TxWorkManager()
  • Method Details

    • addWork

      public static void addWork(jakarta.resource.spi.work.Work work, jakarta.transaction.Transaction tx) throws jakarta.resource.spi.work.WorkCompletedException
      Add the specified work unit to the specified transaction.
      Parameters:
      work - The work to associate with the transaction.
      tx - The transaction to have associated with the work.
      Throws:
      jakarta.resource.spi.work.WorkCompletedException - thrown if there is already work associated with the transaction.
    • removeWork

      public static void removeWork(jakarta.resource.spi.work.Work work, jakarta.transaction.Transaction tx)
      Remove the specified unit of work from the transaction.
      Parameters:
      work - the work to remove.
      tx - the transaction the work should be disassociated from.
    • hasWork

      public static boolean hasWork(jakarta.transaction.Transaction tx)
      Does the transaction have any work associated with it?
      Parameters:
      tx - the transaction to check.
      Returns:
      true if there is work associated with the transaction, false otherwise.
    • getWork

      public static jakarta.resource.spi.work.Work getWork(jakarta.transaction.Transaction tx)
      Get the work currently associated with the transaction.
      Parameters:
      tx - the transaction.
      Returns:
      the work, or null if there is none.