Package net.sf.basedb.core.migrate
Class DateWriter
java.lang.Object
net.sf.basedb.core.migrate.AbstractResultWriter
net.sf.basedb.core.migrate.DateWriter
- All Implemented Interfaces:
ResultWriter
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 FastDateFormat.format(java.util.Date)
to format the value.- Since:
- 3.1
- Author:
- Nicklas
- Last modified
- $Date$
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.commons.lang3.time.FastDateFormat
Fields inherited from class net.sf.basedb.core.migrate.AbstractResultWriter
index, NULL_ESCAPE, rs, writer
-
Constructor Summary
ConstructorDescriptionDateWriter
(ResultSet rs, int index, Writer writer, char[] nullEscape, org.apache.commons.lang3.time.FastDateFormat dateFormat) -
Method Summary
-
Field Details
-
dateFormat
private final org.apache.commons.lang3.time.FastDateFormat dateFormat
-
-
Constructor Details
-
DateWriter
-
-
Method Details
-
write
Description copied from interface:ResultWriter
Write the current data.- Throws:
SQLException
IOException
-