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) int
formatId
(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 boolean
equals(java.lang.Object o)
byte[]
getBranchQualifier()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
(package private) static javax.transaction.xa.Xid
stringToXid(java.lang.String s)
java.lang.String
toString()
This is for debugging purposes only.(package private) static java.lang.String
xidToString(javax.transaction.xa.Xid xid)
-
-
-
Method Detail
-
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfacejavax.transaction.xa.Xid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfacejavax.transaction.xa.Xid
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
This is for debugging purposes only.- Overrides:
toString
in 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.
-
-