Class LocalXaTransaction

All Implemented Interfaces:
CacheTransaction
Direct Known Subclasses:
RecoveryAwareLocalTransaction

public class LocalXaTransaction extends LocalTransaction
LocalTransaction implementation to be used with TransactionXaAdapter.
Since:
5.0
Author:
Mircea.Markus@jboss.com
  • Constructor Details

    • LocalXaTransaction

      public LocalXaTransaction(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
  • Method Details

    • setXid

      public void setXid(XidImpl xid)
    • getXid

      public XidImpl getXid()
    • isEnlisted

      public boolean isEnlisted()
      As per the JTA spec, XAResource.start is called on enlistment. That method also sets the xid for this local transaction.
      Specified by:
      isEnlisted in class LocalTransaction
    • toString

      public String toString()
      Overrides:
      toString in class LocalTransaction