Interface SQLExtractor<T>

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
    T read​(java.sql.ResultSet resultSet, SQLContext context)
    Applies this extractor to the given ResultSet and SQLContext.
  • Method Details

    • read

      T read​(java.sql.ResultSet resultSet, SQLContext context) throws java.sql.SQLException
      Applies this extractor to the given ResultSet and SQLContext.
      Parameters:
      resultSet - the provided query result
      context - an object covering context variables
      Returns:
      an instance of the result type
      Throws:
      java.sql.SQLException - if an I/O error occurs