Package com.arjuna.ats.jta.utils
Class XAHelper
- java.lang.Object
-
- com.arjuna.ats.jta.utils.XAHelper
-
public class XAHelper extends java.lang.ObjectSome useful utility routines.
-
-
Constructor Summary
Constructors Constructor Description XAHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringprintXAErrorCode(javax.transaction.xa.XAException e)Print a human-readable version of the XAException.static booleansameTransaction(javax.transaction.xa.Xid x1, javax.transaction.xa.Xid x2)Compares two Xid instances at the gtid level only.static booleansameXID(javax.transaction.xa.Xid x1, javax.transaction.xa.Xid x2)Compares two Xid instances.static java.lang.StringxidToString(javax.transaction.xa.Xid xid)get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
-
-
-
Method Detail
-
printXAErrorCode
public static java.lang.String printXAErrorCode(javax.transaction.xa.XAException e)
Print a human-readable version of the XAException.
-
sameXID
public static boolean sameXID(javax.transaction.xa.Xid x1, javax.transaction.xa.Xid x2)Compares two Xid instances.- Parameters:
x1- first Xidx2- second Xid- Returns:
trueif the two instances are the same,falseotherwise.
-
sameTransaction
public static boolean sameTransaction(javax.transaction.xa.Xid x1, javax.transaction.xa.Xid x2)Compares two Xid instances at the gtid level only.- Parameters:
x1- first Xidx2- second Xid- Returns:
trueif the two instances are the same,falseotherwise.
-
xidToString
public static java.lang.String xidToString(javax.transaction.xa.Xid xid)
get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
-
-