Skip to the content.

Introduction to JDBC

-

What We’ll Cover:

-

Objectives:

-

JDBC: Introduction

JDBC is an API for the Java programming language that defines how a client may access a Database.

Part of Java SE, found in java.sql and javax.sql packages

-

alt text

-

Architecture of JDBC

-

Driver Manager

The basic service for managing a set of jdbc drivers

-

alt text

-

JDBC Driver Types

A JDBC driver is a set of Java classes that implement the JDBC interfaces, targeting a specific Database

-

Types of Drivers

-

Type 1 : JDBC-ODBC bridge

Advantages

Disadvantages

-

Type 2 : Native-API driver

Advantages

Disadvantages