T - The type of the column.public class ColumnListHandler<T> extends AbstractListHandler<T>
ResultSetHandler implementation that converts one
ResultSet column into a List of
Objects. This class is thread safe.ResultSetHandler| 构造器和说明 |
|---|
ColumnListHandler()
Creates a new instance of ColumnListHandler.
|
ColumnListHandler(int columnIndex)
Creates a new instance of ColumnListHandler.
|
ColumnListHandler(String columnName)
Creates a new instance of ColumnListHandler.
|
public ColumnListHandler()
handle().public ColumnListHandler(int columnIndex)
columnIndex - The index of the column to retrieve from the
ResultSet.public ColumnListHandler(String columnName)
columnName - The name of the column to retrieve from the
ResultSet.protected T handleRow(ResultSet rs) throws SQLException
ResultSet column value as Object.handleRow 在类中 AbstractListHandler<T>rs - ResultSet to process.Object, never null.SQLException - if a database access error occursClassCastException - if the class datatype does not match the column typeAbstractListHandler.handle(ResultSet)Copyright © 2020 com.github.braisdom. All rights reserved.