|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbcx.JtdsXid
jTDS implementation of the Xid
interface.
Field Summary | |
private byte[] |
bqual
The branch qualifier ID. |
int |
fmtId
The format ID. |
private byte[] |
gtran
The global transaction ID. |
int |
hash
Precalculated hash value. |
static int |
XID_SIZE
The size of an XID in bytes. |
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary | |
JtdsXid(byte[] global,
byte[] branch)
Construct an XID using two byte arrays. |
|
JtdsXid(byte[] buf,
int pos)
Construct an XID using an offset into a byte buffer. |
|
JtdsXid(javax.transaction.xa.Xid xid)
Construct an XID as a clone of another XID. |
Method Summary | |
private void |
calculateHash()
|
boolean |
equals(java.lang.Object obj)
Test for equality. |
byte[] |
getBranchQualifier()
|
int |
getFormatId()
|
byte[] |
getGlobalTransactionId()
|
int |
hashCode()
Get the hash code for this object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int XID_SIZE
private final byte[] gtran
private final byte[] bqual
public final int fmtId
public int hash
Constructor Detail |
public JtdsXid(byte[] buf, int pos)
buf
- the byte bufferpos
- the offsetpublic JtdsXid(byte[] global, byte[] branch)
global
- the global transaction idbranch
- the transaction branchpublic JtdsXid(javax.transaction.xa.Xid xid)
Method Detail |
private void calculateHash()
public int hashCode()
int
public boolean equals(java.lang.Object obj)
obj
- the object to test for equality with this
boolean
true if the parameter equals thispublic 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 java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |