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

What is Spring JDBC? How is different from JDBC?

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

Contents


More Related Answers

  • jdbc spring boot configuration for mysql database
  • spring boot jdbc for mysql
  • How can you change JDK version in Spring Boot?
  • spring jdbc
  • JDBC definition
  • jdbc dependency
  • what is jvm jdk and jre
  • Explain JDK, JRE and JVM?
  • creating jdbc connection in java using service name oracle
  • Database Connectivity - JDBC, Spring JDBC & JPA
  • Spring JDBC
  • 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?

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

    0

    3

    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 6/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


    X

    Continue with Google

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

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