|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.transaction.XidImpl
public class XidImpl
Transaction identifier implementation.
Field Summary | |
---|---|
static int |
GLOBAL_LENGTH
|
Fields inherited from interface javax.transaction.xa.Xid |
---|
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary | |
---|---|
XidImpl(byte[] global,
byte[] local)
|
|
XidImpl(long serverId,
long randomId,
long sequence)
Creates a new transaction id. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the xid. |
boolean |
equals(java.lang.Object o)
Returns equality. |
byte[] |
getBranchQualifier()
|
int |
getFormatId()
|
byte[] |
getGlobalTransactionId()
|
int |
hashCode()
Returns hashCode. |
java.lang.String |
toString()
Printable version of the transaction id. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GLOBAL_LENGTH
Constructor Detail |
---|
public XidImpl(long serverId, long randomId, long sequence)
id
- the 64 bit number for the id.public XidImpl(byte[] global, byte[] local)
Method Detail |
---|
public int getFormatId()
getFormatId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |