Class GlobalXactId

java.lang.Object
org.apache.derby.iapi.store.access.GlobalXact
org.apache.derby.impl.store.raw.xact.GlobalXactId
All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, GlobalTransactionId

public class GlobalXactId extends GlobalXact implements GlobalTransactionId
See Also:
  • Constructor Details

    • GlobalXactId

      GlobalXactId(int format_id, byte[] global_id, byte[] branch_id)
      Constructors for This class:
    • GlobalXactId

      public GlobalXactId()
      Public Methods of Formatable interface:
  • Method Details

    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Write this out.
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException - error writing to log stream
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Read this in
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException - error reading from log stream
      ClassNotFoundException - log stream corrupted
    • getTypeFormatId

      public int getTypeFormatId()
      Return my format identifier.
      Specified by:
      getTypeFormatId in interface TypedFormat
      Returns:
      The identifier. (A UUID stuffed in an array of 16 bytes).
    • getFormat_Id

      int getFormat_Id()
      Obtain the format id part of the GlobalTransactionId.
      Returns:
      format identifier, 0 means the OSI CCR format
    • getGlobalTransactionId

      byte[] getGlobalTransactionId()
      Obtain the global transaction identifier as an array of bytes.
      Returns:
      a byte array containing the global transaction identifier
    • getBranchQualifier

      byte[] getBranchQualifier()
      Obtain the transaction branch qualifier as an array of bytes.
      Returns:
      a byte array containing the branch qualifier of the transaction