Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Seller Lakshmi




Posted Questions



Wait...

Posted Answers



Answer


The JDBC classes are contained in the Java Package java.sql and javax.sql.JDBC helps you to write Java applications that manage these three programming activities:

Structure of JDBC

JDBC Drivers

JDBC drivers are client-side adapters (installed on the client machine, not on the server) that convert requests from Java programs to a protocol that the DBMS can understand. There are 4 types of JDBC drivers:

Type-1 driver

Type-1 driver or 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. Type-1 driver is also called Universal driver because it can be used to connect to any of the databases.

Type-2 driver

The Native API driver uses the client -side libraries of the database. This driver converts JDBC method calls into native calls of the database API. In order to interact with different database, this driver needs their local API, that’s why data transfer is much more secure as compared to type-1 driver.

Type-3 driver

The Network Protocol driver uses middleware (application server) that converts JDBC calls directly or indirectly into the vendor-specific database protocol. Here all the database connectivity drivers are present in a single server, hence no need of individual client-side installation.

Type-4 driver

Type-4 driver is also called native protocol driver. This driver interact directly with database. It does not require any native database library, that is why it is also known as Thin Driver.

Which Driver to use When?


Answer is posted for the following question.

How to handle jdbc drivers?

Answer


Scratchleys on the Wharf

Address: 200 Wharf Rd, Newcastle NSW 2300, Australia


Answer is posted for the following question.

Do you know best luxury restaurants in Newcastle, Australia?

Answer


Flights from Doha to Sri Lanka on SriLankan Airlines From QAR 1,255 Select journey type One-way Round-trip Multicity From Doha - Qatar (DOH)


Answer is posted for the following question.

How much ticket qatar to sri lanka?


Wait...