Package org.h2.jdbcx

Class JdbcXid

  • All Implemented Interfaces:
    javax.transaction.xa.Xid

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

      • ENCODER

        private static final java.util.Base64.Encoder ENCODER
      • formatId

        private final int formatId
      • branchQualifier

        private final byte[] branchQualifier
      • globalTransactionId

        private final byte[] globalTransactionId
    • Method Detail

      • toString

        static java.lang.StringBuilder toString​(java.lang.StringBuilder builder,
                                                javax.transaction.xa.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 javax.transaction.xa.Xid
        Returns:
        the format id
      • getBranchQualifier

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

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