|
||||||||||
| 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 Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic 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 | |||||||||