School of Engineering Technology and Applied Science

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 13

School of Engineering Technology and Applied Science

Department of Information and Communication Engineering Technology

COURSE CODE: COMP 303

COURSE TITLE: Java EE Programming


JDBC

Professor : Dr. Aime M. Mbobi


1
JDBC

1. Java is platform independent.

You can develop platform-independent database applications using

SQL and Java for any relational database systems.

2. The support for accessing database systems from Java is

built into Java API

So you can create database applications using all Java code with a

common interface.
JDBC Definition and Architecture

3
JDBC Definition

4
JDBC

• JDBC is Set of classes for interacting with a Relational

Database.

• Defines method to connect to all major databases:


Oracle

DB2

MySQL

SQL Server
Database System

6
JDBC

Application User

Application

DBMS System User

DB
JDBC Architecture

8
JDBC

Application/Applet/Servle
t

JDBC API

JDBC Drivers

DBMS

DB
JDBC

• JDBC is an API specification that defines the following:

How to interact with databases from Java applications, applets, and

servlets

How to write JDBC drivers

How to use JDBC drivers


JDBC

• JDBC Drivers provide independence of actual type of DB.

• The java code doesn’t change regardless of DB it works

with
JDBC

Application/Applet/Servle
t

JDBC API

Oracle DB2 MySQL


JDBC Drivers JDBC Drivers JDBC Drivers

Oracle DB2 MySQL

Oracle DB2 MySQL


Database Database Database
JDBC

Java Program

JDBC methods

JDBC Driver is a
JDBC Drivers translator between
Java calls to vendor
specific database calls
DB methods

Database

You might also like