Interface RowMapper<R>

    • Method Detail

      • map

        R map​(ResultSet resultSet)
        throws SQLException
        Obtain the result from the current row of a ResultSet.
        Parameters:
        resultSet - the ResultSet
        Returns:
        the result
        Throws:
        SQLException - if any error happens when processing the ResultSet. May be if the name/label is not valid, if a database access error occurs, or this method is called on a closed result set.
      • andThen

        default <S> RowMapper<S> andThen​(Function<? super R,​S> resultMapper)
        Create a new mapper which takes the result of this mapper and applies the given Function to yield another result.
        Type Parameters:
        S - the output type of the given resultMapper function, which also become the type of the result produced by the new row mapper.
        Parameters:
        resultMapper - the function to apply to the result
        Returns:
        the new row mapper
      • combinedWith

        default <S> RowMapper.Tupled<R,​S> combinedWith​(RowMapper<S> otherMapper)
        Create a new row mapper which first runs this mapper and then the given mapper, and combines the two results into a tuple-type container.
        Parameters:
        otherMapper - the mapper to run in addition to this.
        Returns:
        the new mapper