0 votes
in Spring by
What are some of the classes for Spring JDBC API?

1 Answer

0 votes
by

Following are the classes

  • JdbcTemplate
  • SimpleJdbcTemplate
  • NamedParameterJdbcTemplate
  • SimpleJdbcInsert
  • SimpleJdbcCall

The most commonly used one is JdbcTemplate. This internally uses the JDBC API and has the advantage that we don't need to create connection, statement, start transaction,commit transaction and close connection to execute different queries. All these are handled by JdbcTemplate itself. The developer can focus on executing the query directly.

...