JDBC
JDBC
1. JDBC API:
It provides various methods and interfaces for easy communication
with the database.
1. Two-tier model:
A java application communicates directly to the data source. The
JDBC driver enables the communication between the application and the data
source.
When a user sends a query to the data source, the answers for those
queries are sent back to the user in the form of results.
The data source can be located on a different machine on a network
to which a user is connected.
The results are sent back to the middle tier, and from there to the
user.
This type of model is found very useful by management
information system directors.
Working of JDBC: