Package org.h2.jdbcx
Class JdbcXid
java.lang.Object
org.h2.message.TraceObject
org.h2.jdbcx.JdbcXid
- All Implemented Interfaces:
Xid
An object of this class represents a transaction id.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private static final Base64.Encoder
private final int
private final byte[]
private static final String
Fields inherited from class org.h2.message.TraceObject
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
The transaction branch identifier.int
Get the format id.byte[]
The global transaction identifier.(package private) static StringBuilder
toString
(StringBuilder builder, Xid xid) INTERNALMethods inherited from class org.h2.message.TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
Field Details
-
PREFIX
- See Also:
-
ENCODER
-
formatId
private final int formatId -
branchQualifier
private final byte[] branchQualifier -
globalTransactionId
private final byte[] globalTransactionId
-
-
Constructor Details
-
JdbcXid
JdbcXid(JdbcDataSourceFactory factory, int id, String tid)
-
-
Method Details
-
toString
INTERNAL- Parameters:
builder
- to put result intoxid
- to provide string representation for- Returns:
- provided StringBuilder
-
getFormatId
public int getFormatId()Get the format id.- Specified by:
getFormatId
in interfaceXid
- Returns:
- the format id
-
getBranchQualifier
public byte[] getBranchQualifier()The transaction branch identifier.- Specified by:
getBranchQualifier
in interfaceXid
- Returns:
- the identifier
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()The global transaction identifier.- Specified by:
getGlobalTransactionId
in interfaceXid
- Returns:
- the transaction id
-