Package com.ocient.cli.extract
Class ResultSetExtractor
java.lang.Object
com.ocient.cli.extract.ResultSetExtractor
- Direct Known Subclasses:
WriteThroughResultSetExtractor
public abstract class ResultSetExtractor extends Object
-
Field Summary
Fields Modifier and Type Field Description protected ExtractConfigurationextractConfigprotected ArrayList<String>headersprotected RecordExtractorFactoryrecordExtractorFactory -
Method Summary
Modifier and Type Method Description abstract voidextract(ResultSet resultSet, ResultSetMetaData resultSetMetaData)protected Object[]getRow(ResultSet resultSet, int colCount)protected voidparseHeader(ResultSetMetaData resultSetMetaData)protected RecordExtractorFactory.WriterHandlestartNewWriter(int fileIndex)
-
Field Details
-
Method Details
-
extract
public abstract void extract(ResultSet resultSet, ResultSetMetaData resultSetMetaData) throws IllegalStateException, IOException, SQLException -
startNewWriter
- Throws:
IOException
-
getRow
- Throws:
SQLException
-
parseHeader
- Throws:
SQLException
-