Interface RowMapper<T>

Type Parameters:
T - generic row type
All Known Implementing Classes:
GenericRowMapper
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 RowMapper<T>
Converts a single row from a ResultSet to a generic row type.
  • Method Summary

    Modifier and Type
    Method
    Description
    mapRow(ResultSet resultSet, int rowNum)
    Converts a single row from a ResultSet to a generic row type.
  • Method Details

    • mapRow

      T mapRow(ResultSet resultSet, int rowNum) throws SQLException
      Converts a single row from a ResultSet to a generic row type.
      Parameters:
      resultSet - result set
      rowNum - the current row number (zero based)
      Returns:
      the converted row
      Throws:
      SQLException - if accessing the result set fails