Package com.webmethods.jms.impl
Class WmXid
- java.lang.Object
-
- com.webmethods.jms.impl.WmXid
-
- All Implemented Interfaces:
javax.transaction.xa.Xid
public class WmXid extends java.lang.Object implements javax.transaction.xa.Xid
-
-
Constructor Summary
Constructors Constructor Description WmXid(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
Creates an Xid.WmXid(java.lang.String externalId)
Creates an Xid from a Broker external identifier.WmXid(javax.transaction.xa.Xid xid)
Creates an Xid from a foreign Xid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.byte[]
getBranchQualifier()
Obtain the transaction branch identifier as an array of bytes.int
getFormatId()
Obtain the format identifier.byte[]
getGlobalTransactionId()
Obtain the global transaction identifier as an array of bytes.int
hashCode()
Returns a hash code value for the object.java.lang.String
toString()
Converts this Object to its string representation.
-
-
-
Constructor Detail
-
WmXid
public WmXid(java.lang.String externalId)
Creates an Xid from a Broker external identifier. The format of an Xid represented as an external identifier is:: : - Parameters:
externalId
- An external identifier
-
WmXid
public WmXid(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
Creates an Xid.- Parameters:
formatId
- The format identifier.globalTransactionId
- The global transaction identifier.branchQualifier
- The transaction branch qualifier.
-
WmXid
public WmXid(javax.transaction.xa.Xid xid)
Creates an Xid from a foreign Xid.
-
-
Method Detail
-
getBranchQualifier
public byte[] getBranchQualifier()
Obtain the transaction branch identifier as an array of bytes.- Specified by:
getBranchQualifier
in interfacejavax.transaction.xa.Xid
- Returns:
- The transaction branch identifer.
-
getFormatId
public int getFormatId()
Obtain the format identifier.- Specified by:
getFormatId
in interfacejavax.transaction.xa.Xid
- Returns:
- The format identifier.
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Obtain the global transaction identifier as an array of bytes.- Specified by:
getGlobalTransactionId
in interfacejavax.transaction.xa.Xid
- Returns:
- The global transaction identifier.
-
toString
public java.lang.String toString()
Converts this Object to its string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of this object
-
hashCode
public int hashCode()
Returns a hash code value for the object.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.- Overrides:
equals
in classjava.lang.Object
-
-