JDBC Driver is a software component that enables java application to interact with the database.There are 4 types of JDBC drivers:
The JDBC-ODBC bridge driver uses ODBC driver to connect to the database. The JDBC-ODBC bridge driver converts JDBC method calls into the ODBC function calls. This is now discouraged because of thin driver.
The Native API driver uses the client-side libraries of the database. The driver converts JDBC method calls into native calls of the database API. It is not written entirely in java.
1. performance upgraded than JDBC-ODBC bridge driver.
1. The Native driver needs to be installed on the each client machine.
2. The Vendor client library needs to be installed on client machine.
The Network Protocol driver uses middleware (application server) that converts JDBC calls directly or indirectly into the vendor-specific database protocol. It is fully written in java.
1 No client side library is required because of application server that can perform many tasks like auditing, load balancing, logging etc.
1 Network support is required on client machine.
2 Requires database-specific coding to be done in the middle tier.
3 Maintenance of Network Protocol driver becomes costly because it requires database-specific coding to be done in the middle tier.
The thin driver converts JDBC calls directly into the vendor-specific database protocol. That is why it is known as thin driver. It is fully written in Java language.
1. Better performance than all other drivers.
2. No software is required at client side or server side.
1. Drivers depends on the Database.