3.1.2: 2012-07-31

net.sf.basedb.core.migrate
Class DateWriter

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

public class DateWriter
extends AbstractResultWriter

Generic writer implementation that writes date values from a result set. This writer use ResultSet.getDate(int) to read data from the result set and the DateFormat.format(java.util.Date) to format the value.

Since:
3.1
Author:
Nicklas
Last modified
$Date$

Field Summary
private  DateFormat dateFormat
           
 
Fields inherited from class net.sf.basedb.core.migrate.AbstractResultWriter
index, NULL_ESCAPE, rs, writer
 
Constructor Summary
DateWriter(ResultSet rs, int index, Writer writer, char[] nullEscape, DateFormat dateFormat)
           
 
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
 

Field Detail

dateFormat

private final DateFormat dateFormat
Constructor Detail

DateWriter

public DateWriter(ResultSet rs,
                  int index,
                  Writer writer,
                  char[] nullEscape,
                  DateFormat dateFormat)
Method Detail

write

public void write()
           throws SQLException,
                  IOException
Description copied from interface: ResultWriter
Write the current data.

Throws:
SQLException
IOException

3.1.2: 2012-07-31