




























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An introduction to JDBC (Java Database Connectivity) and its architecture. It explains the different types of JDBC drivers and their advantages and disadvantages. It also covers the JDBC Driver Manager and how to establish a connection to a database using JDBC. Additionally, it discusses the different types of statements in JDBC, including Statement, PreparedStatement, and CallableStatement, and how to use them. Finally, it briefly touches on using properties files to connect to a database.
Typology: Slides
1 / 68
This page cannot be seen from the preview
Don't miss anything!
Presentation by:
JDBC SERVER
JAVA APP
JDBC JRE DRIVER C L I E N T JAVA APP
DRIVER SERVER JDBC JRE C L I E N T
JDBC API Application JDBC Driver A JDBC Driver Manager JDBC.ODBC BRIDGE ODBC JDBC Architecture JDBC Driver B DB DB DB
JDBC-ODBC Bridge Driver *A JDBC-ODBC bridge provides JDBC API access via one or more ODBC drivers. *Some ODBC native code and in many cases native database client code must be loaded on each client machine that uses this type of driver. *Type 1 drivers are "bridge" drivers. They use another technology such as Open Database Connectivity (ODBC) to communicate with a database. This is an advantage because ODBC drivers exist for many Relational Database Management System (RDBMS) platforms. The Java Native Interface (JNI) is used to call ODBC functions from the JDBC driver.
JDBC-ODBC Bridge Driver
DB JDBC-ODBC BRIDGE J D B C O D B C
Native-API Partly Java Driver
Server OCI DB Library J D B C JAVA App C L I E N T SERVER
Functions:
Net-Protocol Fully Java Driver JDBC Driver 1 Middle ware Appli cation
Library JAVA App JAVA App JDBC Driver 2
Ora cle SQL Ser
APPLICATION SERVER Protocol 1 Protocol 2
Functions
Native-Protocol Fully Java Driver