Beruflich Dokumente
Kultur Dokumente
in
International Journal Of Engineering And Computer Science ISSN:2319-7242
Volume 2. Issue 10 October 2013 Page No. 2979-2984
A serious problem facing many organizations today is the need to use information from multiple data sources that
have been developed separately. To solve this problem, Java Database Connectivity came into existence. JDBC helps
us to connect to a database and execute SQL statements against a database. JDBC API provides set of interfaces and
there are different implementations respective to different databases. This paper emphasis on its history and
implementation, architecture and JDBC drivers.
INTRODUCTION jdbc:odbc://www.somecompany.com:400/databasefil
e
JDBC is a Java-based data access technology from
Oracle Corporation. This technology is an API for the Advantages of JDBC:
Java programming language that defines how a client
may access a database. It provides methods for o Can read any database if proper drivers
are installed.
querying and updating data in a database. JDBC (Java
o Creates XML structure of data from
Database Connectivity) is a standard API for accessing database automatically
relational databases from a Java program. This o No content conversion required
interface makes it easy to access a database because o Query and Stored procedure supported.
it provides an abstract layer that hides the low-level o Can be used for both Synchronous and
details, such as managing sockets. It also provides for Asynchronous processing.
interoperability and portability since it allows a single o Supports modules
Aditi Khazanchi,IJECS Volume 2. Issue 10 October 2013 Page No.2979-2984 Page 2979
JDBC 4.1, is specified by a maintenance release of JSR Examples of connection pools include BoneCP, C3P0
221[3] and is included in Java SE 7. and DBCP.
5 JDBC DRIVERS
Fig: Two-tier Architecture for Data
Access. A JDBC driver is a software component enabling a Java
application to interact with database. JDBC drivers are
In the two-tier model, a Java application talks directly
analogous to ODBC drivers, ADO.NET data providers,
to the data source. This requires a JDBC driver that
and OLE DB providers. To connect with individual
can communicate with the particular data source
databases, JDBC (the Java Database Connectivity API)
being accessed. A user's commands are delivered to
requires drivers for each database. The JDBC driver
the database or other data source, and the results of
gives out the connection to the database and
those statements are sent back to the user. The data
implements the protocol for transferring the query
source may be located on another machine to which
and result between client and database.
the user is connected via a network. This is referred to
as a client/server configuration, with the user's JDBC technology drivers fit into one of four
machine as the client, and the machine housing the categories-
data source as the server. The network can be an
intranet, which, for example, connects employees Type 1 Driver - JDBC-ODBC Bridge
within a corporation, or it can be the Internet. Type 2 Driver - Native-API Driver
Type 3 Driver - Network-Protocol
Driver(MiddleWare Driver)
Type 4 Driver - Database-Protocol
Driver(Pure Java Driver)
http://en.wikipedia.org/wiki/Java_Database_Connecti
Drivers are database dependent, as different database
vendors use wildly different (and usually vity
proprietary) network protocols.
http://searchoracle.techtarget.com/definition/Java-
Database-Connectivity
http://docs.oracle.com/javase/tutorial/jdbc/overview
/architecture.html
http://www.tutorialspoint.com/jdbc/jdbc-
introduction.htm
http://en.wikipedia.org/wiki/JDBC_driver
http://www.tutorialspoint.com/jdbc/jdbc-driver-
types.htm
CONCLUSION