public class ColumnListHandler extends AbstractListHandler<Object>
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 Object |
handleRow(ResultSet rs)
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 Object handleRow(ResultSet rs) throws SQLException
ResultSet column value as Object.handleRow in class AbstractListHandler<Object>rs - ResultSet to process.Object, never null.SQLException - if a database access error occursAbstractListHandler.handle(ResultSet)Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.