Interface RowMapper<T>

  • All Known Implementing Classes:
    InstantiatorRowMapper
    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>
    Maps a single row of result-set into an object.
    • Method Detail

      • mapRow

        T mapRow​(@NotNull
                 @NotNull java.sql.ResultSet resultSet)
          throws java.sql.SQLException
        Produces a single value based on current row.

        The implementation should not call ResultSet.next() or other methods to move the current position of the ResultSet, caller is responsible for that.

        Throws:
        java.sql.SQLException