Chapter 3, DAO and JDBC in Spring

Q1. Explain Spring JDBC packages.

To handle different aspects of JDBC, Spring JDBC is divided into packages, as shown in following table:

Spring JDBC packages

Description

org.springframework.jdbc.core

In the Spring Framework, this package contains the foundations of JDBC classes, which includes Core JDBC Class and JdbcTemplate. It simplifies the database operation using JDBC.

org.springframework.jdbc.datasource

This package contains DataSource implementations and helper classes, which can be used to run the JDBC code outside JEE container.

org.springframework.jdbc.object

In the Spring Framework, this package contains classes that helps in converting the data returned from the database into plain java objects. ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.