Class AbstractResultWriter

java.lang.Object
net.sf.basedb.core.migrate.AbstractResultWriter
All Implemented Interfaces:
ResultWriter
Direct Known Subclasses:
BooleanWriter, ByteArrayWriter, DateWriter, DoubleWriter, FloatWriter, IntegerWriter, LongWriter, ShortWriter, TextWriter, TimestampWriter

public abstract class AbstractResultWriter extends Object implements ResultWriter
Abstract base implementation of a result writer that simply store the result set, writer, etc. that are needed later. Subclasses have read access to the instance variables directly.
Since:
3.1
Author:
Nicklas
Last modified
$Date: 2011-11-30 11:58:08 +0100 (on, 30 nov 2011) $
  • Field Details

    • NULL_ESCAPE

      protected final char[] NULL_ESCAPE
    • rs

      protected final ResultSet rs
    • index

      protected final int index
    • writer

      protected final Writer writer
  • Constructor Details

    • AbstractResultWriter

      protected AbstractResultWriter(ResultSet rs, int index, Writer writer, char[] nullEscape)
      Creates a new writer.
      Parameters:
      nullEscape - The character sequence to write for null values