0% found this document useful (0 votes)
32 views1 page

What Is A JDBC Driver

A JDBC driver implements the JDBC interfaces and classes to allow Java programs to connect to databases. There are four types of JDBC drivers: Type 1 uses ODBC, Type 2 converts calls to native APIs, Type 3 sends calls through a middle tier, and Type 4 converts calls directly to database protocols. The driver is loaded before connecting and handles calls between the JDBC API and the database.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

What Is A JDBC Driver

A JDBC driver implements the JDBC interfaces and classes to allow Java programs to connect to databases. There are four types of JDBC drivers: Type 1 uses ODBC, Type 2 converts calls to native APIs, Type 3 sends calls through a middle tier, and Type 4 converts calls directly to database protocols. The driver is loaded before connecting and handles calls between the JDBC API and the database.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What is a JDBC driver?

The JDBC API defines the Java interfaces and classes that programmers use to connect to databases and send queries. A JDBC driver implements these interfaces and classes for a particular DBMS vendor. A Java program that uses the JDBC API loads the specified driver for a particular DBMS before it actually connects to a database. The JDBC DriverManager class then sends all JDBC API calls to the loaded driver. The four types of JDBC drivers are: JDBC-ODBC bridge plus ODBC driver, also called Type 1. Translates JDBC API calls into Microsoft Open Database Connectivity (ODBC) calls that are then passed to the ODBC driver. The ODBC binary code must be loaded on every client computer that uses this type of driver. Native-API, partly Java driver, also called Type 2. Converts JDBC API calls into DBMS-specific client API calls. Like the bridge driver, this type of driver requires that some binary code be loaded on each client computer. JDBC-Net, pure Java driver, also called Type 3. Sends JDBC API calls to a middle-tier net server that translates the calls into the DBMSspecific network protocol. The translated calls are then sent to a particular DBMS. Native-protocol, pure Java driver, also called Type 4. Converts JDBC API calls directly into the DBMS-specific network protocol without a middle tier. This allows the client applications to connect directly to the database server.

You might also like