Class ijXid

java.lang.Object
org.apache.derby.impl.tools.ij.ijXid
All Implemented Interfaces:
Serializable, Xid

class ijXid extends Object implements Xid, Serializable
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • format_id

      private final int format_id
    • global_id

      private final byte[] global_id
    • branch_id

      private final byte[] branch_id
  • Constructor Details

    • ijXid

      ijXid(int xid, byte[] id)
  • Method Details

    • getFormatId

      public int getFormatId()
      Obtain the format id part of the Xid.

      Specified by:
      getFormatId in interface Xid
      Returns:
      Format identifier. O means the OSI CCR format.
    • getGlobalTransactionId

      public byte[] getGlobalTransactionId()
      Obtain the global transaction identifier part of XID as an array of bytes.

      Specified by:
      getGlobalTransactionId in interface Xid
      Returns:
      A byte array containing the global transaction identifier.
    • getBranchQualifier

      public byte[] getBranchQualifier()
      Obtain the transaction branch qualifier part of the Xid in a byte array.

      Specified by:
      getBranchQualifier in interface Xid
      Returns:
      A byte array containing the branch qualifier of the transaction.