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
IOException
SAXException
public List<String> getHeaders() throws IOException
IOException
protected void handleInteger(ResultSet rs, int columnIndex, ContentHandler handler) throws SQLException, SAXException
SQLException
SAXException
protected void handleClob(String tableName, String columnName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context) throws SQLException, IOException, SAXException
SQLException
IOException
SAXException
protected void handleBlob(String tableName, String columnName, int rowNum, ResultSet resultSet, int columnIndex, ContentHandler handler, ParseContext context) throws SQLException, IOException, SAXException
SQLException
IOException
SAXException
protected 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 nullSQLException
protected void handleDate(ResultSet resultSet, int columnIndex, ContentHandler handler) throws SAXException, SQLException
SAXException
SQLException
protected void handleTimeStamp(ResultSet resultSet, int columnIndex, ContentHandler handler) throws SAXException, SQLException
SAXException
SQLException
protected void addAllCharacters(String s, ContentHandler handler) throws SAXException
SAXException
public String getTableName()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.