/** 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;
  }