Breaking News: Grepper is joining Read the official announcement!
Check it out

What is Spring JDBC? How is different from JDBC?

Pragya Keshap answered on March 1, 2023 Popularity 5/10 Helpfulness 1/10


More Related Answers

  • spring jdbc
  • jdbc spring boot configuration for mysql database
  • How can you change JDK version in Spring Boot?
  • JDBC definition
  • jdbc dependency
  • what is jvm jdk and jre
  • Explain JDK, JRE and JVM?
  • creating jdbc connection in java using service name oracle
  • What is the difference between JDK and JRE?
  • jdbc api in java
  • jdbc code
  • steps to accomplish jdbc connection in java
  • Spring data JDBC features
  • What is the better method of using JDBC in Spring?
  • Database Connectivity - JDBC, Spring JDBC & JPA
  • Spring JDBC

  • What is Spring JDBC? How is different from JDBC?



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

    Define connection parameters

    Open the connection

    Specify the statement

    Prepare and execute the statement

    Set up the loop to iterate through the results (if any)

    Do the work for each iteration

    Process any exception

    Handle transactions

    Close the connection

    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.

    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 

    Popularity 5/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.