Using template classes to perform JDBC operations

Template classes provide an abstract way to define operations by getting rid of common issues, such as opening and maintaining the connection, and the boiler plate code, such as getting the Statement objects. Spring provides many such template classes when dealing with the JDBC and JMS, and Transaction management becomes easier than ever. JdbcTemplate is one of such core components by Spring that helps in handling JDBC. To handle JDBC, we can use any one of the JdbcTemplate, NamedParameterJdbcTemplate as discussed next.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.15.94