Package net.sf.basedb.core.migrate
Class BooleanWriter
- java.lang.Object
-
- net.sf.basedb.core.migrate.AbstractResultWriter
-
- net.sf.basedb.core.migrate.BooleanWriter
-
- All Implemented Interfaces:
ResultWriter
public class BooleanWriter extends AbstractResultWriter
Database-independent writer implementation that writes boolean values from a result set. This writer writes "true" or "false" for non-null values or the givennullEscape
value for null values and usesResultSet.getBoolean(int)
to get the current result set value.- Since:
- 3.1
- Author:
- Nicklas
- Last modified
- $Date$
-
-
Field Summary
Fields Modifier and Type Field Description private static char[]
FALSE
private static char[]
TRUE
-
Fields inherited from class net.sf.basedb.core.migrate.AbstractResultWriter
index, NULL_ESCAPE, rs, writer
-
-
Constructor Summary
Constructors Constructor Description BooleanWriter(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
-
-