0% found this document useful (0 votes)
37 views

JDBC

The document discusses JDBC (Java Database Connectivity), which is the standard API for connecting Java applications to databases. It provides a call-level API for SQL databases. There are four types of JDBC drivers: direct-to-database pure Java drivers, pure Java drivers for database middleware, JDBC-ODBC bridge plus ODBC drivers, and native API partly Java-enabled drivers. Each type translates JDBC calls differently, such as directly to the database protocol or through middleware or ODBC.

Uploaded by

Vatsalam Singh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

JDBC

The document discusses JDBC (Java Database Connectivity), which is the standard API for connecting Java applications to databases. It provides a call-level API for SQL databases. There are four types of JDBC drivers: direct-to-database pure Java drivers, pure Java drivers for database middleware, JDBC-ODBC bridge plus ODBC drivers, and native API partly Java-enabled drivers. Each type translates JDBC calls differently, such as directly to the database protocol or through middleware or ODBC.

Uploaded by

Vatsalam Singh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

JDBC – Java Database Connectivity

The Java Database Connectivity (JDBC) API is the industry standard for database-
independent connectivity between the Java programming language and a wide range of
databases – SQL databases and other tabular data sources, such as spreadsheets or flat files.
The JDBC API provides a call-level API for SQL-based database access.

With a JDBC technology-enabled driver, you can connect all corporate data even in a
heterogeneous environment.

JDBC Architecture

The JDBC API contains two major sets of interfaces: the first is the JDBC API for
application writers, and the second is the lower-level JDBC driver API for driver writers.
JDBC technology drivers fit into one of four categories. Applications and applets can access
databases via the JDBC API using pur

Java JDBC technology-based drivers, as shown in this figure:

Left side, Type 4: Direct-to-Database Pure Java Driver


This style of driver converts JDBC calls into the network protocol used directly by DBMSs,
allowing a direct call from the client machine to the DBMS server and providing a practical
solution for intranet access.

Right side, Type 3: Pure Java Driver for Database Middleware


This style of driver translates JDBC calls into the middleware vendor's protocol, which is
then translated to a DBMS protocol by a middleware server. The middleware provides
connectivity to many different databases.

The graphic below illustrates JDBC connectivity using ODBC drivers and existing database
client libraries.
Left side, Type 1: JDBC-ODBC Bridge plus ODBC Driver
This combination provides JDBC access via ODBC drivers. ODBC binary code -- and in
many cases, database client code -- must be loaded on each client machine that uses a JDBC-
ODBC Bridge. Sun provides a JDBC-ODBC Bridge driver, which is appropriate for
experimental use and for situations in which no other driver is available.

Right side, Type 2: A native API partly Java technology-enabled driver


This type of driver converts JDBC calls into calls on the client API for Oracle, Sybase,
Informix, DB2, or other DBMS. Note that, like the bridge driver, this style of driver requires
that some binary code be loaded on each client machine.

You might also like