| java.lang.Object net.sourceforge.jtds.jdbcx.JtdsXid
JtdsXid | public class JtdsXid implements Xid(Code) | | jTDS implementation of the Xid interface.
version: $Id: JtdsXid.java,v 1.3 2005/04/28 14:29:30 alin_sinpalean Exp $ |
Field Summary | |
final public static int | XID_SIZE The size of an XID in bytes. | final public int | fmtId The format ID. | public int | hash Precalculated hash value. |
Constructor Summary | |
public | JtdsXid(byte[] buf, int pos) Construct an XID using an offset into a byte buffer. | public | JtdsXid(byte[] global, byte[] branch) Construct an XID using two byte arrays. | public | JtdsXid(Xid xid) Construct an XID as a clone of another XID. |
XID_SIZE | final public static int XID_SIZE(Code) | | The size of an XID in bytes.
|
fmtId | final public int fmtId(Code) | | The format ID.
|
hash | public int hash(Code) | | Precalculated hash value.
|
JtdsXid | public JtdsXid(byte[] buf, int pos)(Code) | | Construct an XID using an offset into a byte buffer.
Parameters: buf - the byte buffer Parameters: pos - the offset |
JtdsXid | public JtdsXid(byte[] global, byte[] branch)(Code) | | Construct an XID using two byte arrays.
Parameters: global - the global transaction id Parameters: branch - the transaction branch |
JtdsXid | public JtdsXid(Xid xid)(Code) | | Construct an XID as a clone of another XID.
|
equals | public boolean equals(Object obj)(Code) | | Test for equality.
Parameters: obj - the object to test for equality with this boolean true if the parameter equals this |
getBranchQualifier | public byte[] getBranchQualifier()(Code) | | |
getFormatId | public int getFormatId()(Code) | | |
getGlobalTransactionId | public byte[] getGlobalTransactionId()(Code) | | |
hashCode | public int hashCode()(Code) | | Get the hash code for this object.
the hash value of this object as a int |
|
|