org.jboss.mq
Class JBossMQXid

java.lang.Object
  extended byorg.jboss.mq.JBossMQXid
All Implemented Interfaces:
java.io.Serializable, Xid (src)

public class JBossMQXid
extends java.lang.Object
implements java.io.Serializable, Xid (src)

This class is a wrapper for non-serializable implementations of java.transaction.xa.Xid.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid (src)
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
JBossMQXid(Xid (src)  xid)
          Create a new wrapper Xid
 
Method Summary
 boolean equals(java.lang.Object object)
           
 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.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JBossMQXid

public JBossMQXid(Xid (src)  xid)
Create a new wrapper Xid

Parameters:
xid - the wrapped xid
Method Detail

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.

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.

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

toString

public java.lang.String toString()