0% found this document useful (0 votes)
97 views

Java PPT JDBC

The JDBC API allows Java applications to connect to and interact with relational databases. It provides classes and interfaces that enable sending SQL statements to any database from Java code. A JDBC driver handles communication between the application and target database, allowing the application to issue SQL and receive results regardless of database type or location. The API supports both two-tier and three-tier database access models.

Uploaded by

vvenkat123
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Java PPT JDBC

The JDBC API allows Java applications to connect to and interact with relational databases. It provides classes and interfaces that enable sending SQL statements to any database from Java code. A JDBC driver handles communication between the application and target database, allowing the application to issue SQL and receive results regardless of database type or location. The API supports both two-tier and three-tier database access models.

Uploaded by

vvenkat123
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

JDB

C
The Java Database Connectivity (JDBC) API enables you to
send SQL statements to any type of relational database from a
Java application.
The JDBC API provides classes and interfaces that can be used
to write database applications in 100% Pure Java.
Using the JDBC API, you can write one Java application to send
SQL statements to any type of database at run time.
JDBC is secure and portable across any kind of Java platform.
JDBC allows you to
connect to a database
execute SQL statements
process the results of SQL queries

JDB
C

The JDBC API provides support for both twotier and three-tier database access models.

In the two-tier model the Java application


client has direct communication with the
database.

A JDBC driver sits on the client machine.

However, the database itself probably resides


on another machine - the server.

The JDBC driver communicates with the target


database.

SQL statements are issued to this database.

And the user receives the appropriate results.

Communication between the application


(client) and the database (server) can take
place over an intranet or the Internet.

Communication between the application and


the database is based on a DBMS-proprietary
protocol.

JDB
C

The middle tier receives the SQL statements


issued from the client application.
This tier forwards these statements to the
database.

The database processes the statements and


sends them back to the user through the
middle tier.
The client machine communicates with the
middle tier using such protocols as
Hypertext Transfer Protocol (HTTP) or
Remote Method Invocation (RMI).
Whereas the middle tier and database
communication are governed by a DBMSproprietary protocol.

JDB
C

Introducing
Classes

JDB
C

JDB
C

A Closer Look at Methods


and Classes

JDB
C

A Closer Look at Methods


and Classes

Inherita
nce

You might also like