接口 RowMapper<T>

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      TmapRow​(ResultSet rs, int rowNum)
      Implementations must implement this method to map each row of data in the ResultSet.
    • 方法详细资料

      • mapRow

        @Nullable
        T mapRow​(ResultSet rs,
                 int rowNum)
          throws SQLException
        Implementations must implement this method to map each row of data in the ResultSet. This method should not call next() on the ResultSet; it is only supposed to map values of the current row.
        参数:
        rs - the ResultSet to map (pre-initialized for the current row)
        rowNum - the number of the current row
        返回:
        the result object for the current row (may be null)
        抛出:
        SQLException - if an SQLException is encountered getting column values (that is, there's no need to catch SQLException)