Raw JDBC makes data access repetitive: resource handling and nested try-catch code can crowd out the persistence logic. JdbcTemplate takes care of that boilerplate so a DAO can focus on what varies. section 6.2.2
A DAO uses JdbcTemplate to:
- Run a query by providing SQL, parameter values, and a RowMapper, without handling Connection or PreparedStatement directly. section 6.2.2
- Convert each result row into an object with a RowMapper, which can be reused for queries involving the same table. section 6.2.2
Find people by last name
A PersonDao query can pass `SELECT * FROM employee WHERE last_name = ?`, the last-name argument, and a PersonRowMapper. That mapper builds a Person from the row’s first and last name. section 6.2.2
Figure 6.3. Collaboration between the template code provided by the Spring Framework and the DAO implementation provided by the developer
See how framework-provided template code handles the shared work while the DAO supplies its specific data-access behavior. section 6.2.2

