Interface ResultSetExtractor<T>
- Type Parameters:
T
- any type represents an object in a database
- All Known Implementing Classes:
ColumnExtractor
,ColumnWithSerialTypeExtractor
,TableExtractor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A mapper from raw data to domain model.
-
Method Summary
Modifier and TypeMethodDescriptionextractData
(ResultSet resultSet) Converts a row from database to an arbitrary domain model.
-
Method Details
-
extractData
Converts a row from database to an arbitrary domain model.- Parameters:
resultSet
- the ResultSet to extract data from- Returns:
- an arbitrary result object
- Throws:
SQLException
- if an SQLException is encountered getting column values or navigating
-