I am new to SpringFramework. I am confused by the usage between RowMapper and ResultSetExtractor.
It seems I have to implement 2 different interfaces for the same function, ie.
List l = JdbcTemplate.query("select * from Product", aRowMapperClass);
and
Product p = (Product) JdbcTemplate.query("select * from Product where id = 1", aResultSetExtractorClass);
thanks.
java9394


Reply With Quote