net.sf.basedb.core.migrate
Class TimestampWriter
java.lang.Object
net.sf.basedb.core.migrate.AbstractResultWriter
net.sf.basedb.core.migrate.TimestampWriter
- All Implemented Interfaces:
- ResultWriter
public class TimestampWriter
- extends AbstractResultWriter
Generic writer implementation that writes timestamp values from a result
set. This writer use ResultSet.getTimestamp(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: 2011-11-30 11:58:08 +0100 (on, 30 nov 2011) $
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 |
dateFormat
private final DateFormat dateFormat
TimestampWriter
public TimestampWriter(ResultSet rs,
int index,
Writer writer,
char[] nullEscape,
DateFormat dateFormat)
write
public void write()
throws SQLException,
IOException
- Description copied from interface:
ResultWriter
- Write the current data.
- Throws:
SQLException
IOException