public class SerializableXid
extends java.lang.Object
implements javax.transaction.xa.Xid, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private byte[] |
branchQualifier |
private int |
formatId |
private byte[] |
globalTransactionId |
Constructor and Description |
---|
SerializableXid(javax.transaction.xa.Xid xid)
Create a SerializableXid, copying the GTRID and BQUAL of an existing XID
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
java.lang.String |
toString() |
private final int formatId
private final byte[] globalTransactionId
private final byte[] branchQualifier
public SerializableXid(javax.transaction.xa.Xid xid)
xid
- a SerializableXidpublic int getFormatId()
getFormatId
in interface javax.transaction.xa.Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface javax.transaction.xa.Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface javax.transaction.xa.Xid
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object