接口 ResultSetExtractor<T>

    • 方法详细资料

      • extractData

        T extractData​(ResultSet rs)
               throws SQLException,
                      DataAccessException
        Implementations must implement this method to process the entire ResultSet.
        参数:
        rs - ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.
        返回:
        an arbitrary result object, or null if none (the extractor will typically be stateful in the latter case).
        抛出:
        SQLException - if a SQLException is encountered getting column values or navigating (that is, there's no need to catch SQLException)
        DataAccessException - in case of custom exceptions