You are on page 1of 7

QA to SDET Transformation

Agency SDET Hyd Team

April 2022
JDBC Concepts

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 2


Agenda :
• What is JDBC ?

• Why do we need JDBC in Automation ?

• JDBC Connectivity

• Executing Queries & Retrieving Results

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 3


What is JDBC ?
• JDBC is an API(Application programming interface) used in java programming to interact
with databases. The classes and interfaces of JDBC allow the application to
send requests made by users to the specified database.

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 4


JDBC Architecture :

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 5


Steps For Connectivity Between Java Program and Database

1. Import the Packages

2. Load the drivers using the forName() method

3. Register the drivers using Driver Manager

4. Establish a connection using the Connection class object

5. Create a statement

6. Execute the query

7. Close the connection

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 6


Thank you 

INTERNAL USE ONLY DO NOT DISTRIBUTE © 2022 Vertafore, Inc. | 7

You might also like