Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java API for Database Connectivity

Similar presentations


Presentation on theme: "Java API for Database Connectivity"— Presentation transcript:

1 Java API for Database Connectivity
Chapter-3 JDBC Java API for Database Connectivity

2 What you expect in DB API
Java Application Java DB API Open a Connection Send a statement Retrieve results Close a connection DBMS Engine Create a connection Session Execute statement Send results Close the session

3 Big picture Java Application JDBC API JDBC Manager JDBC Driver API
JDBC Drivers Grey Area Data Sources

4 JDBC driver type-1 Uses the existing API Not the fastest
JDBC-ODBC Bridge Java ODBC Driver Native Driver Non Java Net Driver

5 JDBC driver type-2 Uses vendor-provided local libraries Most efficient
Java Native Driver Non Java Net Driver

6 Implements a proprietary
JDBC driver type-3 & 4 100% java. JDBC – Net Driver Java JDBC Driver Implements a proprietary Protocol in java Java

7 Complete JDBC Architecture
Java Application JDBC Interface JDBC Driver Manager JDBC Driver Interface JDBC Net Driver A JDBC–ODBC Bridge B JDBC Driver C JDBC Driver D ODBC Driver Native Driver C Native Driver B A B C D

8 JDBC Interface classes
Java.sql package DriverManager Connection Statement CallableStatement PreparedStatement Resultset ResultSetMetaData DatabaseMetatData


Download ppt "Java API for Database Connectivity"

Similar presentations


Ads by Google