Package net.sf.basedb.core.migrate
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
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
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 Details
-
NULL_ESCAPE
protected final char[] NULL_ESCAPE -
rs
-
index
protected final int index -
writer
-
-
Constructor Details
-
AbstractResultWriter
Creates a new writer.- Parameters:
nullEscape
- The character sequence to write for null values
-