|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.tm.XidImpl
This object encapsulates the ID of a transaction. This implementation is immutable and always serializable at runtime.
TransactionImpl
,
Serialized FormField Summary | |
static int |
JBOSS_FORMAT_ID
|
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary | |
XidImpl(byte[] globalId,
byte[] branchId,
int hash)
Create a new instance. |
|
XidImpl(Xid xid,
byte[] branchId)
Create a new branch of an existing global transaction ID. |
Method Summary | |
boolean |
equals(Object obj)
Compare for equality. |
byte[] |
getBranchQualifier()
Return the branch qualifier of this transaction. |
int |
getFormatId()
Return the format identifier of this transaction. |
byte[] |
getGlobalTransactionId()
Return the global transaction id of this transaction. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int JBOSS_FORMAT_ID
Constructor Detail |
public XidImpl(byte[] globalId, byte[] branchId, int hash)
public XidImpl(Xid xid, byte[] branchId)
xid
- The transaction ID to create a new branch of.branchId
- The ID of the new branch.Method Detail |
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public int getFormatId()
getFormatId
in interface Xid
public boolean equals(Object obj)
public int hashCode()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |