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.

@FunctionalInterface public interface ResultSetExtractor<T>
A mapper from raw data to domain model.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a row from database to an arbitrary domain model.
  • Method Details

    • extractData

      @Nonnull T extractData(@Nonnull ResultSet resultSet) throws SQLException
      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