Package org.h2.jdbcx

Class JdbcXid

All Implemented Interfaces:
Xid

public final class JdbcXid extends TraceObject implements Xid
An object of this class represents a transaction id.
  • Field Details

    • PREFIX

      private static final String PREFIX
      See Also:
    • ENCODER

      private static final Base64.Encoder ENCODER
    • formatId

      private final int formatId
    • branchQualifier

      private final byte[] branchQualifier
    • globalTransactionId

      private final byte[] globalTransactionId
  • Constructor Details

  • Method Details

    • toString

      static StringBuilder toString(StringBuilder builder, Xid xid)
      INTERNAL
      Parameters:
      builder - to put result into
      xid - to provide string representation for
      Returns:
      provided StringBuilder
    • getFormatId

      public int getFormatId()
      Get the format id.
      Specified by:
      getFormatId in interface Xid
      Returns:
      the format id
    • getBranchQualifier

      public byte[] getBranchQualifier()
      The transaction branch identifier.
      Specified by:
      getBranchQualifier in interface Xid
      Returns:
      the identifier
    • getGlobalTransactionId

      public byte[] getGlobalTransactionId()
      The global transaction identifier.
      Specified by:
      getGlobalTransactionId in interface Xid
      Returns:
      the transaction id