SlideShare a Scribd company logo
1 of 12
JDBC Objects 
P.VINAY KUMAR 
11B61A1234
JDBC INTRODUCTION 
CONCEPTS OF JDBC 
JDBC DRIVERS TYPE 
JDBC PACKAGES
 JDBC provides API or PROTOCOL to interact 
with different DATABASE 
 With the help of JDBC drivers we can 
connect with different database. 
 A JDBC driver works as interface between 
client and Database server
Concepts of JDBC: 
Open a connection between the DBMS & J2ME 
application 
Translate low-level SQL statements sent by J2ME 
application into messages that sent by the J2ME 
application. 
Return data that conforms to the JDBC specification 
to the JDBC drivers. 
Return information, such as error messages that 
conforms to the JDBC specification to the JDBC 
drivers. 
Provide transaction management routines that 
confirms to the JDBC specification. 
Close the connection between the DBMS & J2ME 
application
Java Application 
JDBC API 
Data Base Drivers 
Access SQL 
Server 
DB2 Informix MySQL Sybase
 Type 1 
 JDBC-ODBC Bridge 
 Type 2 
Native API, partially java 
 Type 3 
JDBC Network Driver, partially java 
 Type 4 
100% Java
 Type 1 JDBC to ODBC Driver 
the JDBC to ODBC Driver, also called the 
JDBCODBC bridge, is used to translate DBMS 
calls between JDBC specification & the ODBC 
specifications. 
The JDBC to ODBC driver receives message from 
a J2ME application. 
it is platform dependent. 
Client JDBC-ODBC 
ODBC DB 
Vendor 
Library
 Type 2 Java/Native Code Driver 
The Java/Native Code Driver uses the Java Classes to 
generate platform specific code. 
This code is only understood by a specific DBMS. 
The disadvantage of this driver is lack of portability. 
The API classes of Java/Native Code Driver probably 
won’t work for another DBMS. 
Client JDBC 
Vendor 
Library 
DB
 Type 3 JDBC Driver 
Type 3 JDBC Driver is also referred as 
JAVA protocol, is the most commonly used 
driver 
It converts SQL queries into JDBC 
statements and translates JDBC formatted 
statements into DBMS format. 
 3-TIER ARCHITECTURE
 Type 4 JDBC Driver 
 Type 4 JDBC Driver is also referred as JAVA 
Database Protocol, it is similar to Type 3 JDBC 
Driver. 
 SQL queries are need not to convert into JDBC-format, 
Directly translated into format 
required by DBMS. 
 This is the fastest way to communicate SQL 
queries to the DBMS. 
 It is 100% pure JDBC driver.
The JDBC API contained in two packages. 
The first package is called Java.sql and contains core 
JDBC interfaces of JDBC API. 
It provide the basics for connecting to the DBMS and 
interacting with data stored in the DBMS. 
Java.sql is part of J2SE. 
The second package is called Javax.sql, which extends 
the Java.sql and is the part of J2ME. 
It includes JDBC interface that interfaces with Java 
Naming and Directory Interface(JNDI). 
JDBC interface that manages connection pooling, among 
other advanced JDBC features.
THANK YOU…

More Related Content

What's hot (20)

Jdbc driver types
Jdbc driver typesJdbc driver types
Jdbc driver types
 
Jdbc
JdbcJdbc
Jdbc
 
jdbc
jdbcjdbc
jdbc
 
Jdbc drivers
Jdbc driversJdbc drivers
Jdbc drivers
 
JDBC-Introduction
JDBC-IntroductionJDBC-Introduction
JDBC-Introduction
 
Jdbc_ravi_2016
Jdbc_ravi_2016Jdbc_ravi_2016
Jdbc_ravi_2016
 
Jdbc Ppt
Jdbc PptJdbc Ppt
Jdbc Ppt
 
jdbc document
jdbc documentjdbc document
jdbc document
 
JDBC,Types of JDBC,Resultset, statements,PreparedStatement,CallableStatements...
JDBC,Types of JDBC,Resultset, statements,PreparedStatement,CallableStatements...JDBC,Types of JDBC,Resultset, statements,PreparedStatement,CallableStatements...
JDBC,Types of JDBC,Resultset, statements,PreparedStatement,CallableStatements...
 
Jdbc drivers
Jdbc driversJdbc drivers
Jdbc drivers
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
 
creating jdbc connection
creating jdbc connectioncreating jdbc connection
creating jdbc connection
 
Database and Java Database Connectivity
Database and Java Database ConnectivityDatabase and Java Database Connectivity
Database and Java Database Connectivity
 
JDBC Connectivity Model
JDBC Connectivity ModelJDBC Connectivity Model
JDBC Connectivity Model
 
Ajp notes-chapter-05
Ajp notes-chapter-05Ajp notes-chapter-05
Ajp notes-chapter-05
 
Jdbc
JdbcJdbc
Jdbc
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
Unit 5-jdbc2
Unit 5-jdbc2Unit 5-jdbc2
Unit 5-jdbc2
 
Jdbc
JdbcJdbc
Jdbc
 
java Jdbc
java Jdbc java Jdbc
java Jdbc
 

Similar to Vinay

Ajp notes-chapter-05
Ajp notes-chapter-05Ajp notes-chapter-05
Ajp notes-chapter-05JONDHLEPOLY
 
chapter 5 java.pptx
chapter 5  java.pptxchapter 5  java.pptx
chapter 5 java.pptxBekiTube
 
java database connection (jdbc)
java database connection (jdbc)java database connection (jdbc)
java database connection (jdbc)Sanjay Gunjal
 
Chapter_4_-_JDBC[1].pptx
Chapter_4_-_JDBC[1].pptxChapter_4_-_JDBC[1].pptx
Chapter_4_-_JDBC[1].pptxBachaSirata
 
Mobile Application Devlopement-Database connections-UNIT-5
Mobile Application Devlopement-Database connections-UNIT-5Mobile Application Devlopement-Database connections-UNIT-5
Mobile Application Devlopement-Database connections-UNIT-5Pallepati Vasavi
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdfArumugam90
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdfArumugam90
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySqlDhyey Dattani
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySqlDhyey Dattani
 
JDBC java database connectivity with dbms
JDBC java database connectivity with dbmsJDBC java database connectivity with dbms
JDBC java database connectivity with dbmsKhyalNayak
 
JDBC : Java Database Connectivity
JDBC : Java Database Connectivity JDBC : Java Database Connectivity
JDBC : Java Database Connectivity DevAdnani
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types pptkamal kotecha
 
JDBC Presentation with JAVA code Examples.pdf
JDBC Presentation with JAVA code Examples.pdfJDBC Presentation with JAVA code Examples.pdf
JDBC Presentation with JAVA code Examples.pdfssuser8878c1
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Pooja Talreja
 

Similar to Vinay (20)

3 jdbc
3 jdbc3 jdbc
3 jdbc
 
Jdbc introduction
Jdbc introductionJdbc introduction
Jdbc introduction
 
Ajp notes-chapter-05
Ajp notes-chapter-05Ajp notes-chapter-05
Ajp notes-chapter-05
 
chapter 5 java.pptx
chapter 5  java.pptxchapter 5  java.pptx
chapter 5 java.pptx
 
java database connection (jdbc)
java database connection (jdbc)java database connection (jdbc)
java database connection (jdbc)
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Chapter_4_-_JDBC[1].pptx
Chapter_4_-_JDBC[1].pptxChapter_4_-_JDBC[1].pptx
Chapter_4_-_JDBC[1].pptx
 
Mobile Application Devlopement-Database connections-UNIT-5
Mobile Application Devlopement-Database connections-UNIT-5Mobile Application Devlopement-Database connections-UNIT-5
Mobile Application Devlopement-Database connections-UNIT-5
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
 
JDBC with MySQL.pdf
JDBC with MySQL.pdfJDBC with MySQL.pdf
JDBC with MySQL.pdf
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
 
Java database connectivity with MySql
Java database connectivity with MySqlJava database connectivity with MySql
Java database connectivity with MySql
 
JDBC java database connectivity with dbms
JDBC java database connectivity with dbmsJDBC java database connectivity with dbms
JDBC java database connectivity with dbms
 
Jdbc 1
Jdbc 1Jdbc 1
Jdbc 1
 
JDBC : Java Database Connectivity
JDBC : Java Database Connectivity JDBC : Java Database Connectivity
JDBC : Java Database Connectivity
 
Java jdbc
Java jdbcJava jdbc
Java jdbc
 
Jdbc complete
Jdbc completeJdbc complete
Jdbc complete
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
JDBC Presentation with JAVA code Examples.pdf
JDBC Presentation with JAVA code Examples.pdfJDBC Presentation with JAVA code Examples.pdf
JDBC Presentation with JAVA code Examples.pdf
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)
 

Vinay

  • 1. JDBC Objects P.VINAY KUMAR 11B61A1234
  • 2. JDBC INTRODUCTION CONCEPTS OF JDBC JDBC DRIVERS TYPE JDBC PACKAGES
  • 3.  JDBC provides API or PROTOCOL to interact with different DATABASE  With the help of JDBC drivers we can connect with different database.  A JDBC driver works as interface between client and Database server
  • 4. Concepts of JDBC: Open a connection between the DBMS & J2ME application Translate low-level SQL statements sent by J2ME application into messages that sent by the J2ME application. Return data that conforms to the JDBC specification to the JDBC drivers. Return information, such as error messages that conforms to the JDBC specification to the JDBC drivers. Provide transaction management routines that confirms to the JDBC specification. Close the connection between the DBMS & J2ME application
  • 5. Java Application JDBC API Data Base Drivers Access SQL Server DB2 Informix MySQL Sybase
  • 6.  Type 1  JDBC-ODBC Bridge  Type 2 Native API, partially java  Type 3 JDBC Network Driver, partially java  Type 4 100% Java
  • 7.  Type 1 JDBC to ODBC Driver the JDBC to ODBC Driver, also called the JDBCODBC bridge, is used to translate DBMS calls between JDBC specification & the ODBC specifications. The JDBC to ODBC driver receives message from a J2ME application. it is platform dependent. Client JDBC-ODBC ODBC DB Vendor Library
  • 8.  Type 2 Java/Native Code Driver The Java/Native Code Driver uses the Java Classes to generate platform specific code. This code is only understood by a specific DBMS. The disadvantage of this driver is lack of portability. The API classes of Java/Native Code Driver probably won’t work for another DBMS. Client JDBC Vendor Library DB
  • 9.  Type 3 JDBC Driver Type 3 JDBC Driver is also referred as JAVA protocol, is the most commonly used driver It converts SQL queries into JDBC statements and translates JDBC formatted statements into DBMS format.  3-TIER ARCHITECTURE
  • 10.  Type 4 JDBC Driver  Type 4 JDBC Driver is also referred as JAVA Database Protocol, it is similar to Type 3 JDBC Driver.  SQL queries are need not to convert into JDBC-format, Directly translated into format required by DBMS.  This is the fastest way to communicate SQL queries to the DBMS.  It is 100% pure JDBC driver.
  • 11. The JDBC API contained in two packages. The first package is called Java.sql and contains core JDBC interfaces of JDBC API. It provide the basics for connecting to the DBMS and interacting with data stored in the DBMS. Java.sql is part of J2SE. The second package is called Javax.sql, which extends the Java.sql and is the part of J2ME. It includes JDBC interface that interfaces with Java Naming and Directory Interface(JNDI). JDBC interface that manages connection pooling, among other advanced JDBC features.