3.2.4: 2013-12-06

net.sf.basedb.core.migrate
Class FloatWriter

java.lang.Object
  extended by net.sf.basedb.core.migrate.AbstractResultWriter
      extended by net.sf.basedb.core.migrate.FloatWriter
All Implemented Interfaces:
ResultWriter

public class FloatWriter
extends AbstractResultWriter

Database-independent writer implementation that writes double values from a result set. This writer use ResultSet.getFloat(int) to read data from the result set and Float.toString(float) to format the value.

Since:
3.1
Author:
Nicklas
Last modified
$Date$

Field Summary
 
Fields inherited from class net.sf.basedb.core.migrate.AbstractResultWriter
index, NULL_ESCAPE, rs, writer
 
Constructor Summary
FloatWriter(ResultSet rs, int index, Writer writer, char[] nullEscape)
           
 
Method Summary
 void write()
          Write the current data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatWriter

public FloatWriter(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

3.2.4: 2013-12-06