Package net.solarnetwork.node.dao.jdbc
Interface JdbcResultSetCsvWriter
- All Superinterfaces:
AutoCloseable,Closeable,Flushable,org.supercsv.io.ICsvWriter
- All Known Implementing Classes:
ResultSetCsvWriter
public interface JdbcResultSetCsvWriter
extends org.supercsv.io.ICsvWriter
Write JDBC
ResultSet instances as CSV data.
CSV column headers are generated from column names provided by the
ResultSet itself, and their order matches the order of columns in the
ResultSet.- Since:
- 1.17
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Methods inherited from interface org.supercsv.io.ICsvWriter
getLineNumber, getRowNumber, writeComment, writeHeader
-
Method Details
-
write
Export aResultSetas CSV data.- Parameters:
resultSet- TheResultSetto write.- Throws:
SQLException- If any SQL error occurs.IOException- If any IO error occurs.
-
write
void write(ResultSet resultSet, org.supercsv.cellprocessor.ift.CellProcessor[] cellProcessors) throws SQLException, IOException Export aResultSetas CSV data, using cell processors.- 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.
-