Package com.franz.agraph.repository
Class AGXid
java.lang.Object
com.franz.agraph.repository.AGXid
- All Implemented Interfaces:
Xid
This class provides an AllegroGraph-compatible implementation of the Xid interface.
It is used to name prepared commits.
-
Field Summary
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AGXid
public AGXid(int formatId, byte[] globalTransactionId, byte[] branchQualifier) -
AGXid
-
-
Method Details
-
AGXidFromString
- Throws:
DecoderException
-
getFormatId
public int getFormatId()- Specified by:
getFormatId
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()Returns a copy of the global transaction id part of this Xid.- Specified by:
getGlobalTransactionId
in interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()Returns a copy of the branch qualifier part of this Xid.- Specified by:
getBranchQualifier
in interfaceXid
-
toString
-