Spring: Developing Java Applications for the Enterprise
by Ravi Kant Soni, Amuthan Ganeshan, Rajesh RV
What is JdbcTemplate
The central class of the Spring JDBC abstraction framework is the JdbcTemplate class that includes the most common logic in using the JDBC API to access data, such as handling the creation of connection, statement creation, statement execution, and release of resource. The JdbcTemplate class can be found in the org.springframework.jdbc.core package.
The JdbcTemplate class instances are thread-safe once configured. A single JdbcTemplate can be configured and injected into multiple DAOs.
We can use the JdbcTemplate to execute the different types of SQL statements. Data Manipulation Language (DML) is used for inserting, retrieving, updating, and deleting the data in the database. SELECT, INSERT, or UPDATE statements are examples ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access