2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Why Spring JDBC more efficient than Normal JDBC?

I just want to know can I achieve all the functionality exits in JDBC and What are the main differences between Spring JDBC VS JDBC?
userimage

Spring JDBC value-add provided by the Spring Framework's on top JDBC layer.

Basically , you don't need to worry about managing and suffering from infrastructure/plumbing code and purely worry about data and its mapping to objects.


Some Important points WRT Spring JDBC

  • Spring utilizes Template pattern to hide all low level details while giving you extension hooks to extend and work with JDBC.
  • Also, there is a well defined API for database exceptions, that is really developer-friendly when compared to exception hierarchy provided by low level JDBC API's.
  • Also Spring JDBC provides exception translation (no more checked SQLException and differences between databases/dialects) and simple ORM capabilities.


Answer is