public class JDBCTableReader extends Object
| Constructor and Description |
|---|
JDBCTableReader(Connection connection,
String tableName,
EmbeddedDocumentUtil embeddedDocumentUtil) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllCharacters(String s,
ContentHandler handler) |
protected Blob |
getBlob(ResultSet resultSet,
int columnIndex,
Metadata metadata) |
List<String> |
getHeaders() |
String |
getTableName() |
protected void |
handleBlob(String tableName,
String columnName,
int rowNum,
ResultSet resultSet,
int columnIndex,
ContentHandler handler,
ParseContext context) |
protected void |
handleClob(String tableName,
String columnName,
int rowNum,
ResultSet resultSet,
int columnIndex,
ContentHandler handler,
ParseContext context) |
protected void |
handleDate(ResultSet resultSet,
int columnIndex,
ContentHandler handler) |
protected void |
handleInteger(ResultSet rs,
int columnIndex,
ContentHandler handler) |
protected void |
handleTimeStamp(ResultSet resultSet,
int columnIndex,
ContentHandler handler) |
boolean |
nextRow(ContentHandler handler,
ParseContext context) |
public JDBCTableReader(Connection connection, String tableName, EmbeddedDocumentUtil embeddedDocumentUtil)
public boolean nextRow(ContentHandler handler, ParseContext context) throws IOException, SAXException
IOExceptionSAXExceptionpublic List<String> getHeaders() throws IOException
IOExceptionprotected void handleInteger(ResultSet rs, int columnIndex, ContentHandler handler) throws SQLException, SAXException
SQLExceptionSAXExceptionprotected void handleClob(String tableName, String columnName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context) throws SQLException, IOException, SAXException
SQLExceptionIOExceptionSAXExceptionprotected void handleBlob(String tableName, String columnName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context) throws SQLException, IOException, SAXException
SQLExceptionIOExceptionSAXExceptionprotected Blob getBlob(ResultSet resultSet, int columnIndex, Metadata metadata) throws SQLException
resultSet - result set to grab value fromcolumnIndex - index in result setmetadata - metadata to populate or use for each implementationnull if the value was nullSQLExceptionprotected void handleDate(ResultSet resultSet, int columnIndex, ContentHandler handler) throws SAXException, SQLException
SAXExceptionSQLExceptionprotected void handleTimeStamp(ResultSet resultSet, int columnIndex, ContentHandler handler) throws SAXException, SQLException
SAXExceptionSQLExceptionprotected void addAllCharacters(String s, ContentHandler handler) throws SAXException
SAXExceptionpublic String getTableName()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.