Java and Database Connectivity
|
The Driver
-
A class in a package which you load into your Java system
which knows how to talk to your particular database
-
Four types
-
JDBC-ODBC Bridge Driver talks to an
ODBC connection using largely non-Java code.
-
Native API, Partly Java uses foreign
functions to talk to a non-Java API; the non-Java
component talks to the database any way it likes
-
Net Protocol, pure Java talks to a
middleware layer over a network connection using the
middleware's own protocol
-
Native Protocol, pure Java talks
directly to the RDBMS over a network connection using
an RDBMS-specific protocol