org.jboss.test.jca.inflow
Class TestResourceAdapterTxInflow.MyXid

java.lang.Object
  extended byorg.jboss.test.jca.inflow.TestResourceAdapterTxInflow.MyXid
All Implemented Interfaces:
Xid (src)
Enclosing class:
TestResourceAdapterTxInflow (src)

public class TestResourceAdapterTxInflow.MyXid
extends java.lang.Object
implements Xid (src)


Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid (src)
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
TestResourceAdapterTxInflow.MyXid(int id)
           
 
Method Summary
 byte[] getBranchQualifier()
          Get the transaction branch qualifier of this transaction.
 int getFormatId()
          Get the format identifier.
 byte[] getGlobalTransactionId()
          Get the global transaction id of this transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResourceAdapterTxInflow.MyXid

public TestResourceAdapterTxInflow.MyXid(int id)
Method Detail

getBranchQualifier

public byte[] getBranchQualifier()
Description copied from interface: Xid (src)
Get the transaction branch qualifier of this transaction. Please note that JTA does not define if this method returns a copy or a reference to an internal byte array. For maximum portability, do not modify the returned array.

Specified by:
getBranchQualifier in interface Xid (src)
Returns:
A byte array that identifies the branch of this transaction.

getFormatId

public int getFormatId()
Description copied from interface: Xid (src)
Get the format identifier.

Specified by:
getFormatId in interface Xid (src)
Returns:
An integer denoting the family of this transaction, and telling how the two other parts can be interpreted.

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Description copied from interface: Xid (src)
Get the global transaction id of this transaction. Please note that JTA does not define if this method returns a copy or a reference to an internal byte array. For maximum portability, do not modify the returned array.

Specified by:
getGlobalTransactionId in interface Xid (src)
Returns:
A byte array that together with the format ID defines the globally unique ID of this transaction.