Top Description Fields Constructors Methods
org.h2.jdbcx

public final Class JdbcXid

extends TraceObject
implements Xid
Class Inheritance
All Implemented Interfaces
javax.transaction.xa.Xid
Imports
java.util.Base64, javax.transaction.xa.Xid, org.h2.api.ErrorCode, org.h2.message.DbException, .TraceObject

An object of this class represents a transaction id.

Field Summary

Modifier and TypeField and Description
private final byte[]
private static final Base64.Encoder
private final int
private final byte[]
private static final String
Inherited from org.h2.message.TraceObject:
ARRAYBLOBCALLABLE_STATEMENTCLOBCONNECTIONDATA_SOURCEDATABASE_META_DATAPARAMETER_META_DATAPREPARED_STATEMENTRESULT_SETRESULT_SET_META_DATASAVEPOINTSQLXMLSTATEMENTtraceXA_DATA_SOURCEXID

Constructor Summary

AccessConstructor and Description
pack-priv
JdbcXid(JdbcDataSourceFactory factory, int id, String tid)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the identifier
getBranchQualifier
()

Implements javax.transaction.xa.Xid.getBranchQualifier.

The transaction branch identifier.

public int

Returns:

the format id
getFormatId
()

Implements javax.transaction.xa.Xid.getFormatId.

Get the format id.

public byte[]

Returns:

the transaction id
getGlobalTransactionId
()

Implements javax.transaction.xa.Xid.getGlobalTransactionId.

The global transaction identifier.

pack-priv static StringBuilder

Returns:

provided StringBuilder
toString
(StringBuilder
to put result into
builder
,
Xid
to provide string representation for
xid
)

INTERNAL

Inherited from org.h2.message.TraceObject:
debugCodedebugCodeAssigndebugCodeCalldebugCodeCalldebugCodeCallgetNextIdgetTraceIdgetTraceObjectNameisDebugEnabledisInfoEnabledlogAndConvertquotequoteArrayquoteBigDecimalquoteBytesquoteDatequoteIntArrayquoteMapquoteTimequoteTimestampsetTraceunsupported

Field Detail

branchQualifierback to summary
private final byte[] branchQualifier
ENCODERback to summary
private static final Base64.Encoder ENCODER
formatIdback to summary
private final int formatId
globalTransactionIdback to summary
private final byte[] globalTransactionId
PREFIXback to summary
private static final String PREFIX

Hides org.h2.message.TraceObject.PREFIX.

Constructor Detail

JdbcXidback to summary
pack-priv JdbcXid(JdbcDataSourceFactory factory, int id, String tid)

Method Detail

getBranchQualifierback to summary
public byte[] getBranchQualifier()

Implements javax.transaction.xa.Xid.getBranchQualifier.

The transaction branch identifier.

Returns:byte[]

the identifier

Annotations
@Override
getFormatIdback to summary
public int getFormatId()

Implements javax.transaction.xa.Xid.getFormatId.

Get the format id.

Returns:int

the format id

Annotations
@Override
getGlobalTransactionIdback to summary
public byte[] getGlobalTransactionId()

Implements javax.transaction.xa.Xid.getGlobalTransactionId.

The global transaction identifier.

Returns:byte[]

the transaction id

Annotations
@Override
toStringback to summary
pack-priv static StringBuilder toString(StringBuilder builder, Xid xid)

INTERNAL

Parameters
builder:StringBuilder

to put result into

xid:Xid

to provide string representation for

Returns:StringBuilder

provided StringBuilder