T - The return type.public interface ColumnHandler<T>
ResultSet. Instances do the work of retrieving data from a ResultSet.| Modifier and Type | Method and Description |
|---|---|
T |
apply(ResultSet resultSet,
int columnIndex)
Retrieves the current row's column value from a
ResultSet and stores it into an instance of propType. |
boolean |
match(Class<?> propType)
Tests whether to handle a column targeted for a value type matching
propType. |
T apply(ResultSet resultSet, int columnIndex) throws SQLException
ResultSet and stores it into an instance of propType. This method is only called if
match(Class) returns true.resultSet - The source result set. This must be on the correct row.columnIndex - The position of the column to retrieve, a 1-based index.SQLException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result setCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.