Java is increasingly widely used, and using Java programs to Access databases requires a JDBC driver. According to the JDBC specification, the JDBC driver is divided into four categories:
Class One: Drivers are mappings to another data access API, such as ODBC, an example of which is the Jdbc-odbc bridge driver. This class of drivers relies on local library files and is not easy to migrate.
The second category: Driver part of Java writing, part of the local code. The driver relies on the client library files of the particular data source it is connected to, and also relies on local library files and is not easy to migrate.
The Third Kind: uses the pure Java to write, communicates with the middleware server through the database-independent protocol, communicates with the database server through the middleware server.
The fourth class: uses the pure Java to write, realizes to a certain data source communication protocol, communicates directly with the data source.