Interface ResultSetExtractor<T>

    • Method Detail

      • extractData

        T extractData​(ResultSet rs)
               throws SQLException,
                      DataAccessException
        Implementations must implement this method to process the entire ResultSet.
        Parameters:
        rs - ResultSet to extract data from. Implementations should not close this: it will be closed by the calling JdbcTemplate.
        Returns:
        an arbitrary result object, or null if none (the extractor will typically be stateful in the latter case).
        Throws:
        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