Java code database updating
As with the Type 1 driver, the native library tends to limit your cross-platform options because you might not be able to find a driver for your hardware platform.Figure 3.2 illustrates a typical Type 2 driver configuration.Figure 3.1 illustrates a typical Type 1 driver configuration.Figure 3.1 A Type 1 driver uses a native library to communicate with a database-independent API.For example, the if there is one, is used as the starting page.
ODBC, for example, still needs a database-specific driver, so your data passes through the database-specific driver, the ODBC driver, and finally the JDBC driver before it reaches you.
The Java Database Connectivity (JDBC) API is one of the most important APIs for enterprise-level development because you almost always need to access a database.
JDBC gives you a standard API that is mostly database-independent, but still allows you to access specific features of your database if necessary. The core JDBC API () that includes some features more commonly used for J2EE development (especially in the area of Enterprise Java Beans).
Figure 3.2 A Type 2 driver uses a database-specific native library.
A Type 3 JDBC driver is pure Java and uses a database-independent protocol to communicate with a database gateway.
Search for java code database updating:
No matter what database you use, there's a good chance that there's already a JDBC driver available for it.