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
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.
UPDATE statements are examples ...