- Type Parameters:
T- the type of the result of the extractor.
- All Known Subinterfaces:
RedisExtractor<T>
- All Known Implementing Classes:
Extractors.ListExtractor,Extractors.PrimitiveExtractor,Extractors.RawExtractor
- 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 SQLExtractor<T>
Represents a function that reads data from the given
ResultSet with
a SQLContext in mind and produces a result.-
Method Summary
Modifier and Type Method Description Tread(java.sql.ResultSet resultSet, SQLContext context)Applies this extractor to the givenResultSetandSQLContext.
-
Method Details
-
read
Applies this extractor to the givenResultSetandSQLContext.- Parameters:
resultSet- the provided query resultcontext- an object covering context variables- Returns:
- an instance of the result type
- Throws:
java.sql.SQLException- if an I/O error occurs
-