Package org.postgresql.xa
Class RecoveredXid
- java.lang.Object
-
- org.postgresql.xa.RecoveredXid
-
- All Implemented Interfaces:
javax.transaction.xa.Xid
class RecoveredXid extends java.lang.Object implements javax.transaction.xa.Xid
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]branchQualifier(package private) intformatId(package private) byte[]globalTransactionId
-
Constructor Summary
Constructors Constructor Description RecoveredXid(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)byte[]getBranchQualifier()intgetFormatId()byte[]getGlobalTransactionId()inthashCode()(package private) static javax.transaction.xa.XidstringToXid(java.lang.String s)java.lang.StringtoString()This is for debugging purposes only.(package private) static java.lang.StringxidToString(javax.transaction.xa.Xid xid)
-
-
-
Method Detail
-
getFormatId
public int getFormatId()
- Specified by:
getFormatIdin interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionIdin interfacejavax.transaction.xa.Xid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifierin interfacejavax.transaction.xa.Xid
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
This is for debugging purposes only.- Overrides:
toStringin classjava.lang.Object
-
xidToString
static java.lang.String xidToString(javax.transaction.xa.Xid xid)
-
stringToXid
static javax.transaction.xa.Xid stringToXid(java.lang.String s)
- Returns:
- recovered xid, or null if s does not represent a valid xid encoded by the driver.
-
-