• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Servlet » Database » Explain About JDBC Architecture
Next →
← Prev

Explain About JDBC Architecture

By Dinesh Thakur

Below Figure is a representative sketch of the JDBC architecture. This can be used in Java applications,applets, servlets or any other program where Java codes used. Java codes only interact with theJDBC Application-Program Interface (API). The JDBC API is a simple SQL-Level interface,which allows execution of SQL statements through Java.

The API consists of a set of interfaces and classes designed to perform actions on a database. The JDBC API class DriverManager, which is used to establish the connection to the database, is responsible for managing the different JDBC drivers. Other classes of JDBC API are useful when the programmer wishes to develop specific drivers of her own. The JDBC-ODBC bridge performs translations of JDBC calls to an ODBC-compatible format. This bridge is required to maintain compatibility with non-JDBC databases.

                         The JDBC architecture

We’ll be covering the following topics in this tutorial:

  • Interfaces in JDBC API
  • Types of database driver

Interfaces in JDBC API

The JDBC API is defined in java.sql package and it consists of the following interfaces:

• The interface java.sqI.Environment, which allows the creation of new database connections.

• java.sql.Connection, which permits connecting to the database.

• java.sql.Statement, which is the container class for embedded SQL statements.

• java.sql.ResultSet, which allows accessing the results of a statement.

The different classes found in the JDBC API are listed below:

• Driver                           • SqlException                 • Date

• Driver Manager          • SqlWarning                    • Time

• DriverPropertyInfo    • ResultSet                        • Timestamp

• Connection                   • ResultSetMetaData     • Types

• Statement                     • DatabaseMetaData     • DataTruncation

• PreparedStatement

• CallableSatement

The implementation classes for the interfaces shown in italic, in the above list, are

database- vendor-specific.

Types of database driver

Database vendors can provide drivers of various types. Sun Microsystems have specified four types of driver:

Type l-Bridge Drivers These drivers use bridge technology like ODBC to connect to the database. The JDBC-ODBC Bridge Driver is the most commonly used driver.

Type 2-Part-Java Drivers This type wraps a thin layer of Java code over the native code libraries to implement JDBC.

Type 3-Network All-Java Drivers This type consists of a Java code which connects to middleware to access a database via a network protocol. Generally this type of driver is not used for data access.

Type4-Direct All-Java Drivers This type provides a pure Java JDBC implementation, which can be accessed directly and provides services to networking middleware. This is used mainly for internet applications.

You’ll also like:

  1. Explain File System Architecture and its Types
  2. What is JDBC API? Important Goals of JDBC-API.
  3. WHAT IS JDBC?
  4. How to Working with JDBC
  5. JDBC Processing Queries
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

SQL Tutorials

SQL Tutorials

  • SQL - Home
  • SQL - Select
  • SQL - Create
  • SQL - View
  • SQL - Sub Queries
  • SQL - Update
  • SQL - Delete
  • SQL - Order By
  • SQL - Select Distinct
  • SQL - Group By
  • SQL - Where Clause
  • SQL - Select Into
  • SQL - Insert Into
  • SQL - Sequence
  • SQL - Constraints
  • SQL - Alter
  • SQL - Date
  • SQL - Foreign Key
  • SQL - Like Operator
  • SQL - CHECK Constraint
  • SQL - Exists Operator
  • SQL - Drop Table
  • SQL - Alias Syntax
  • SQL - Primary Key
  • SQL - Not Null
  • SQL - Union Operator
  • SQL - Unique Constraint
  • SQL - Between Operator
  • SQL - Having Clause
  • SQL - Isnull() Function
  • SQL - IN Operator
  • SQL - Default Constraint
  • SQL - Minus Operator
  • SQL - Intersect Operator
  • SQL - Triggers
  • SQL - Cursors

Advanced SQL

  • SQL - Joins
  • SQL - Index
  • SQL - Self Join
  • SQL - Outer Join
  • SQL - Join Types
  • SQL - Cross Join
  • SQL - Left Outer Join
  • SQL - Right Join
  • SQL - Drop Index
  • SQL - Inner Join
  • SQL - Datediff() Function
  • SQL - NVL Function
  • SQL - Decode Function
  • SQL - Datepart() Function
  • SQL - Count Function
  • SQL - Getdate() Function
  • SQL - Cast() Function
  • SQL - Round() Function

Other Links

  • SQL - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW