3.2.4: 2013-12-06

net.sf.basedb.core.migrate
Class AbstractResultWriter

java.lang.Object
  extended by 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 Summary
protected  int index
           
protected  char[] NULL_ESCAPE
           
protected  ResultSet rs
           
protected  Writer writer
           
 
Constructor Summary
protected AbstractResultWriter(ResultSet rs, int index, Writer writer, char[] nullEscape)
          Creates a new writer.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.migrate.ResultWriter
write
 

Field Detail

NULL_ESCAPE

protected final char[] NULL_ESCAPE

rs

protected final ResultSet rs

index

protected final int index

writer

protected final Writer writer
Constructor Detail

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

3.2.4: 2013-12-06