Package net.solarnetwork.node.dao.jdbc
Class ResultSetCsvWriter
java.lang.Object
org.supercsv.io.AbstractCsvWriter
net.solarnetwork.node.dao.jdbc.ResultSetCsvWriter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,JdbcResultSetCsvWriter,org.supercsv.io.ICsvWriter
public class ResultSetCsvWriter
extends org.supercsv.io.AbstractCsvWriter
implements JdbcResultSetCsvWriter
Implementation of
JdbcResultSetCsvWriter.- Since:
- 1.17
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetCsvWriter(Writer writer, org.supercsv.prefs.CsvPreference preference) Construct with aWriterand preferences. -
Method Summary
Methods inherited from class org.supercsv.io.AbstractCsvWriter
close, flush, getLineNumber, getRowNumber, incrementRowAndLineNo, writeComment, writeHeader, writeRow, writeRow, writeRowMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.supercsv.io.ICsvWriter
getLineNumber, getRowNumber, writeComment, writeHeader
-
Constructor Details
-
ResultSetCsvWriter
Construct with aWriterand preferences.- Parameters:
writer- The writer to write CSV data to.preference- The preferences to use.
-
-
Method Details
-
write
Description copied from interface:JdbcResultSetCsvWriterExport aResultSetas CSV data.- Specified by:
writein interfaceJdbcResultSetCsvWriter- Parameters:
resultSet- TheResultSetto write.- Throws:
SQLException- If any SQL error occurs.IOException- If any IO error occurs.
-
write
public void write(ResultSet resultSet, org.supercsv.cellprocessor.ift.CellProcessor[] cellProcessors) throws SQLException, IOException Description copied from interface:JdbcResultSetCsvWriterExport aResultSetas CSV data, using cell processors.- Specified by:
writein interfaceJdbcResultSetCsvWriter- Parameters:
resultSet- TheResultSetto write.cellProcessors- An array of cell processors to handle each exported column. The length of the array should match the number and order of columns in theResultSet. null values are permitted and indicate no processing should be performed on that column.- Throws:
SQLException- If any SQL error occurs.IOException- If any IO error occurs.
-