Spring JDBC
As mentioned earlier, Spring JDBC provides a layer of abstraction above the JDBC API. The JdbcTemplate class is the core of this layer. It helps you to manage connections and provides the workflow of interaction with the JDBC API. All you need to do is to prepare the statement and specify how you want to process the result set. The NamedParameterJdbcTemplate class wraps a JdbcTemplate object inside of it to provide the ability to use named parameters instead of a JDBC "?" placeholder.
Spring JDBC also provides SimpleJdbcInsert and SimpleJdbcCall to simplify JDBC operations by utilizing the metadata provided by the database. The metadata is retrieved by invoking the connection.getMetaData() method, which returns an instance of ...
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