Showing posts with label Type 1 Driver. Show all posts
Showing posts with label Type 1 Driver. Show all posts

Saturday, 9 August 2014

Type 1 JDBC Driver : JDBC-ODBC Bridge Driver (Bridge Driver)

Master Java Database Connectivity!

Subscribe to Ram N Java for in-depth JDBC guides, architectural insights, and clear Java tutorials!

SUBSCRIBE NOW

What is the Type 1 JDBC Driver?

The Type 1 JDBC Driver, commonly known as the JDBC-ODBC Bridge Driver, acts as a translator between Java's JDBC calls and Open Database Connectivity (ODBC) function calls.

During the early days of Java, native JDBC drivers were not available for every database. The Type 1 driver bridged this gap by translating JDBC API calls into native ODBC calls, allowing Java applications to communicate with any database that provided an ODBC driver.

How the Architecture Works

The execution flow follows a sequential bridge path across layers:

  • Java Application: Issues standard JDBC calls via java.sql interfaces.
  • JDBC-ODBC Bridge: Translates standard JDBC method calls into corresponding ODBC function calls using native methods.
  • ODBC Driver & Database Client: The client-side ODBC driver processes the queries and routes them to the database server.
  • Database: Executes SQL statements and returns result sets back through the bridge layers.

Advantages and Limitations

  • Broad Database Support (Historic): Allowed Java applications to connect easily to legacy databases that only supported ODBC (e.g., MS Access).
  • Platform Dependency: Requires ODBC configuration and native client binaries installed on every client machine, breaking pure Java portability.
  • Performance Overhead: Dual-layer translation (JDBC to ODBC and ODBC to database format) degrades execution speed.
  • Deprecation: The JDBC-ODBC Bridge was deprecated in Java 7 and completely removed starting from Java 8 in favor of pure Java Type 4 drivers.

Watch More Related JDBC Tutorials


Click here to watch in Youtube : https://www.youtube.com/watch?v=np3TQe9mE0o

Click the below Image to Enlarge
Type 1 JDBC Driver : JDBC-ODBC Bridge Driver (Bridge Driver)
Type 1 JDBC Driver : JDBC-ODBC Bridge Driver (Bridge Driver)
Type 1 JDBC Driver : JDBC-ODBC Bridge Driver (Bridge Driver)
Type 1 JDBC Driver : JDBC-ODBC Bridge Driver (Bridge Driver)

See also:

  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Tutorials