Package com.arjuna.ats.jta.utils
Class XAHelper
java.lang.Object
com.arjuna.ats.jta.utils.XAHelper
Some useful utility routines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Print a human-readable version of the XAException.static boolean
sameTransaction
(Xid x1, Xid x2) Compares two Xid instances at the gtid level only.static boolean
Compares two Xid instances.static String
xidToString
(Xid xid) get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
-
Constructor Details
-
XAHelper
public XAHelper()
-
-
Method Details
-
printXAErrorCode
Print a human-readable version of the XAException. -
sameXID
Compares two Xid instances.- Parameters:
x1
- first Xidx2
- second Xid- Returns:
true
if the two instances are the same,false
otherwise.
-
sameTransaction
Compares two Xid instances at the gtid level only.- Parameters:
x1
- first Xidx2
- second Xid- Returns:
true
if the two instances are the same,false
otherwise.
-
xidToString
get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
-