Sie sind auf Seite 1von 17

Interaction of JAVA with

Data Storage Systems

By -
Abhirup Banerjee 9030241401
Khyati Shah 9030241412
Nandakumar R S 9030241418
Shachee Swadia 9030241429

1
JAVA

2
JDBC
JDBC is a standard interface for
connecting to relational databases
from Java
Drivers are required to transfer sql
queries from JDBC App to relational
DB
The JDBC classes and interfaces are in
the java . sql package

3
Drivers
Is an interpreter that translates JDBC
method calls to vendor-specific
database commands

JDBC APP Driver
DB

 JDBC Call DB Cmd



Implements interfaces in java.sql
Need to download a new driver for each
database engine

4
JD B C Architecture

5
Overview of
Querying a
Database With JDBC

6
Connect

7
Query

8
Process Query

9
Close

10
Business Point of view
Leverage Existing Enterprise Data

Simplified Enterprise Development


Zero Configuration for Network


Computers

11
Advantages of JDBC
Technology
JDBCprovides good performance with
large amount of data

SmallJDBC programs can be developed


very easily

Very good for small applications

12
Disadvantages of JDBC
Technology
Handling the JDBC connections and
properly closing the connection is
also a big issue. Properly closing the
connection is must.

Programmer must hardcode the


Transactions and concurrency code in
the application.

Big programming overhead. 13


Current Trends
Currently, two types of higher-level
APIs:
§ An embedded SQL for Java (eg. SQLJ)
§ A direct mapping of relational
database tables to Java classes
(eg. Java Blend from Sun)
§ JDBC 3.0

14
Conclusion
JD
BC

15
References
http://java.sun.com/javase/6/docs/technotes/g
uides/jdbc/
http://developers.sun.com/product/jdbc/drive
rs

16
Thank You

17

Das könnte Ihnen auch gefallen