Package org.postgresql.xa
Class RecoveredXid
java.lang.Object
org.postgresql.xa.RecoveredXid
- All Implemented Interfaces:
Xid
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) byte[]
(package private) int
(package private) byte[]
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
Constructor Summary
ConstructorsConstructorDescriptionRecoveredXid
(int formatId, byte[] globalTransactionId, byte[] branchQualifier) -
Method Summary
-
Field Details
-
formatId
int formatId -
globalTransactionId
byte[] globalTransactionId -
branchQualifier
byte[] branchQualifier
-
-
Constructor Details
-
RecoveredXid
RecoveredXid(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
-
-
Method Details
-
getFormatId
public int getFormatId()- Specified by:
getFormatId
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()- Specified by:
getGlobalTransactionId
in interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifier
in interfaceXid
-
hashCode
public int hashCode() -
equals
-
toString
This is for debugging purposes only. -
xidToString
-
stringToXid
- Returns:
- recovered xid, or null if s does not represent a valid xid encoded by the driver.
-