/**
   * Un-marshal an object instance from the data input stream
   *
   * @param o the object to un-marshal
   * @param dataIn the data input stream to build the object from
   * @throws IOException
   */
  @Override
  public void tightUnmarshal(
      OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);

    JournalTransaction info = (JournalTransaction) o;
    info.setTransactionId((TransactionId) tightUnmarsalNestedObject(wireFormat, dataIn, bs));
    info.setType(dataIn.readByte());
    info.setWasPrepared(bs.readBoolean());
  }
  /** Write the booleans that this object uses to a BooleanStream */
  @Override
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut)
      throws IOException {
    JournalTransaction info = (JournalTransaction) o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalNestedObject(wireFormat, info.getTransactionId(), dataOut);
    dataOut.writeByte(info.getType());
    dataOut.writeBoolean(info.getWasPrepared());
  }
  /**
   * Write a object instance to data output stream
   *
   * @param o the instance to be marshaled
   * @param dataOut the output stream
   * @throws IOException thrown if an error occurs
   */
  @Override
  public void tightMarshal2(
      OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs)
      throws IOException {
    super.tightMarshal2(wireFormat, o, dataOut, bs);

    JournalTransaction info = (JournalTransaction) o;
    tightMarshalNestedObject2(wireFormat, info.getTransactionId(), dataOut, bs);
    dataOut.writeByte(info.getType());
    bs.readBoolean();
  }
  /** Write the booleans that this object uses to a BooleanStream */
  @Override
  public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
      throws IOException {
    JournalTransaction info = (JournalTransaction) o;

    int rc = super.tightMarshal1(wireFormat, o, bs);
    rc += tightMarshalNestedObject1(wireFormat, info.getTransactionId(), bs);
    bs.writeBoolean(info.getWasPrepared());

    return rc + 1;
  }