JDBCTM-ODBC Bridge Enhancements |
JDK 1.2 Contents
JDBC |
The JDBC-ODBC Bridge allows Java programs to use JDBC with many existing
ODBC drivers. The Bridge is itself a JDBC driver defined in the class
sun.jdbc.odbc.JdbcOdbcDriver
. The Bridge defines the JDBC
subprotocol odbc
.
The JDBC-ODBC Bridge should be considered a transitional solution. Javasoft and Intersolv are working to make the Bridge more reliable and robust, but they do not consider it a supported product. In the near future, development of pure-Java JDBC Drivers will make the JDBC-ODBC Bridge unnecessary.
The JDBC-ODBC Bridge offers several advantages over "naked" ODBC.
The Java programmer's ideal is "Pure Java": no native code, no platform-dependent features. But you may need to begin your development effort right away, without waiting for your DBMS to offer a Java-only JDBC Driver. Partly-native Drivers, such as the JDBC-ODBC Bridge, let you create programs that easily adapt to Pure Java drivers as they become available.
jdbc:odbc:
connection can now have a
charSet
property, to specify a Character Encoding
Scheme other than the client default. For possible values, see
the
JDK 1.1 Internationalizaton specification
on the Javasoft Web Site.