Package net.sf.basedb.core.migrate
Class ShortWriter
- java.lang.Object
-
- net.sf.basedb.core.migrate.AbstractResultWriter
-
- net.sf.basedb.core.migrate.ShortWriter
-
- All Implemented Interfaces:
ResultWriter
public class ShortWriter extends AbstractResultWriter
Database-independent writer implementation that writes short values from a result set. This writer useResultSet.getShort(int)
to read data from the result set andShort.toString(short)
to format the value.- Since:
- 3.1
- Author:
- Nicklas
- Last modified
- $Date: 2011-11-30 11:58:08 +0100 (on, 30 nov 2011) $
-
-
Field Summary
-
Fields inherited from class net.sf.basedb.core.migrate.AbstractResultWriter
index, NULL_ESCAPE, rs, writer
-
-
Constructor Summary
Constructors Constructor Description ShortWriter(ResultSet rs, int index, Writer writer, char[] nullEscape)
-
-
-
Method Detail
-
write
public void write() throws SQLException, IOException
Description copied from interface:ResultWriter
Write the current data.- Throws:
SQLException
IOException
-
-