public class XID
extends java.lang.Object
implements java.io.Serializable, javax.transaction.xa.Xid
| Constructor and Description |
|---|
XID(java.lang.String tid,
java.lang.String resourceURL)
Create a new instance with the resource name as branch.
|
XID(javax.transaction.xa.Xid xid)
Copy constructor needed during recovery: if the data source returns
inappropriate instances (that do not implement equals and hashCode) then
we will need this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
getBranchQualifier() |
java.lang.String |
getBranchQualifierAsString() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
java.lang.String |
getGlobalTransactionIdAsString() |
int |
hashCode() |
java.lang.String |
toString() |
public XID(java.lang.String tid, java.lang.String resourceURL)
tid - The global transaction identifier.resourceURL - The name of the resource in the current configuration
(UNIQUE!), needed for recovering the XIDs for this
configuration. The resulting branch qualifier will ALWAYS
start with the name of the resource, and this can be used
during recovery to identify the XIDs to be recovered.public XID(javax.transaction.xa.Xid xid)
xid - The xid.public int getFormatId()
getFormatId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getBranchQualifierAsString()
public java.lang.String getGlobalTransactionIdAsString()
public int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018. All Rights Reserved.