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| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
handleRow(ResultSet resultSet)
Returns one
ResultSet column value as Object. |
handlepublic 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 resultSet) throws SQLException
ResultSet column value as Object.handleRow in class AbstractListHandler<T>resultSet - 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 © 2002–2023 The Apache Software Foundation. All rights reserved.