public class XidImpl
extends java.lang.Object
implements javax.transaction.xa.Xid, java.io.Serializable
| Constructor and Description |
|---|
XidImpl(byte[] globalId)
Constructor taking a global id (for the main transaction)
|
XidImpl(int formatId,
byte[] globalId,
byte[] branchId) |
XidImpl(javax.transaction.xa.Xid global,
byte[] branch)
Constructor for a branch id
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
java.lang.String |
toString() |
public XidImpl(byte[] globalId)
globalId - the global transaction idpublic XidImpl(javax.transaction.xa.Xid global,
byte[] branch)
global - the xid of the global transaction this branch belongs tobranch - the branch idpublic XidImpl(int formatId,
byte[] globalId,
byte[] branchId)
public int getFormatId()
getFormatId in interface javax.transaction.xa.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xidpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2016 The Apache Software Foundation. All Rights Reserved.