パッケージ org.nkjmlab.sorm4j

インタフェース RowMapper<T>

  • 型パラメータ:
    T -
    機能インタフェース
    これは機能インタフェースなので、ラムダ式またはメソッド参照の割当てターゲットとして使用できます。

    @FunctionalInterface
    public interface RowMapper<T>
    Maps a row in resultSet to a object.
    作成者:
    nkjm
    • メソッドの詳細

      • mapRow

        T mapRow​(ResultSet resultSet,
                 int rowNum)
        Maps a row in resultSet to a object.
        パラメータ:
        resultSet -
        rowNum - Starts 1. e.g. 1, 2, ...
        戻り値:
      • convertToRowsMapper

        static <T> FunctionHandler<ResultSet,​List<T>> convertToRowsMapper​(RowMapper<T> rowMapper)
        Converts the given rowMapper to function mapping rows to object list.
        型パラメータ:
        T -
        パラメータ:
        rowMapper -
        戻り値: