Interface JdbcUtils.SqlResultConverter<R>

Enclosing class:
JdbcUtils
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 static interface JdbcUtils.SqlResultConverter<R>
Describes a function that converts a ResultSet into a result of type R.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(ResultSet resultSet)
    Convert the given resultSet to a result of type R.
  • Method Details

    • apply

      R apply(ResultSet resultSet) throws SQLException
      Convert the given resultSet to a result of type R.
      Parameters:
      resultSet - the sql result set containing results of a prior sql query
      Returns:
      the conversion result
      Throws:
      SQLException - if the results could not be converted