October 2017
Intermediate to advanced
396 pages
10h 2m
English
Spring's JdbcTemplate solves both the problems listed in the last section. JdbcTemplate greatly simplifies the use of the JDBC API, and it eliminates repetitive boilerplate code. It alleviates the common causes of bugs, and handles SQLExceptions properly without sacrificing power. It provides full access to the standard JDBC constructs. Let's see the same code using Spring's JdbcTemplate class to solve these two problems:
int count = jdbcTemplate.queryForObject("SELECT COUNT(*) FROM ACCOUNT", Integer.class);
If ...
Read now
Unlock full access