We can fetch records from the database by the query method of JdbcTemplate. There are two interfaces to do this:
ResultSetExtractor
RowMapper