パッケージ org.nkjmlab.sorm4j

インタフェース ResultSetMapper

    • メソッドの詳細

      • mapRow

        <T> T mapRow​(Class<T> objectClass,
                     ResultSet resultSet)
        Maps the current row in the given resultSet to an object.
        型パラメータ:
        T -
        パラメータ:
        objectClass -
        resultSet -
        戻り値:
      • mapRow

        Map<String,​Object> mapRow​(ResultSet resultSet)
        Maps the current row in the given resultSet to an Map object.
        パラメータ:
        resultSet -
        戻り値:
      • mapRows

        <T> List<T> mapRows​(Class<T> objectClass,
                            ResultSet resultSet)
        Maps the all rows in the given resultSet to an object list.
        型パラメータ:
        T -
        パラメータ:
        objectClass -
        resultSet -
        戻り値:
      • mapRows

        List<Map<String,​Object>> mapRows​(ResultSet resultSet)
        Maps the all rows in the given resultSet to a map list.
        パラメータ:
        resultSet -
        戻り値:
      • convertToRowsMapper

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