Class AbstractJDBCRowsLoader
java.lang.Object
org.apache.shardingsphere.infra.executor.sql.execute.result.query.impl.driver.jdbc.type.memory.loader.AbstractJDBCRowsLoader
- All Implemented Interfaces:
JDBCRowsLoader,org.apache.shardingsphere.spi.type.required.RequiredSPI,org.apache.shardingsphere.spi.type.typed.TypedSPI
- Direct Known Subclasses:
DefaultRowsLoader,MySQLRowsLoader
Abstract JDBC rows loader.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.spi.type.required.RequiredSPI
isDefaultMethods inherited from interface org.apache.shardingsphere.spi.type.typed.TypedSPI
getType, getTypeAliases
-
Constructor Details
-
AbstractJDBCRowsLoader
public AbstractJDBCRowsLoader()
-
-
Method Details
-
load
public Collection<MemoryQueryResultDataRow> load(int columnCount, ResultSet resultSet) throws SQLException Description copied from interface:JDBCRowsLoaderLoad rows.- Specified by:
loadin interfaceJDBCRowsLoader- Parameters:
columnCount- column countresultSet- result set of JDBC- Returns:
- Query result data rows
- Throws:
SQLException- SQL exception
-
getDate
Get date from result set.- Parameters:
resultSet- result setcolumnIndex- column index- Returns:
- date
- Throws:
SQLException- sql exception
-