Interface ValueExtractor<V>
-
- Type Parameters:
V
- the value type
- 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 interface ValueExtractor<V>
Extracts a value from a single row.This class is used to extract a value object from every row in a ref cursor out parameter.
Implementations should not catch
SQLException
this will be done by a higher layer.- See Also:
NumberedValueExtractor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
extractValue(ResultSet resultSet)
Extract the value from the current row.
-
-
-
Method Detail
-
extractValue
V extractValue(ResultSet resultSet) throws SQLException
Extract the value from the current row.Implementations should not call
ResultSet.next()
but instead expect to be called for every method.- Parameters:
resultSet
- the ResultSet to the value of the current row from- Returns:
- the value for the current row
- Throws:
SQLException
- propagated if a method onResultSet
throws an exception
-
-