Interface ResultSetIterator.CustomTypeHandler
-
- Enclosing class:
- ResultSetIterator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ResultSetIterator.CustomTypeHandler
An interface to use for custom type handlers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
handle(ResultSet resultSet, String columnName)
Performs some action to extract the value of the given column from the current row of the ResultSet, transforming it to the appropriate type.
-
-
-
Method Detail
-
handle
Object handle(ResultSet resultSet, String columnName) throws SQLException
Performs some action to extract the value of the given column from the current row of the ResultSet, transforming it to the appropriate type.You should not invoke
ResultSet.next()
or any other method that will change the ResultSet’s cursor location.- Parameters:
resultSet
- The result set, already on the correct rowcolumnName
- The column name- Returns:
- The result of handling the data
- Throws:
SQLException
- on error
-
-