SlideShare a Scribd company logo
1 of 15
Introduction of
Java JDBC
Before JDBC, ODBC API was the database API to
associate and execute question with the database.
Be that as it may, ODBC API utilizes ODBC driver
which is composed in C dialect (i.e. stage needy
and unsecured).
That is the reason Java has characterized
its own API (JDBC API) that utilizations JDBC
drivers (written in Java dialect).
What is API Programming interface
(Application programming interface) is a report
that contains portrayal of the considerable number
of elements of an item or programming.
It speaks to classes and interfaces that
product projects can take after to speak with each
other. An API can be made for applications,
libraries, working frameworks, and so forth ..
Propelled JAVA Training in Marathahalli
bangalore
There are 4 sorts of JDBC drivers
1. JDBC-ODBC connect driver
2. Native-API driver (mostly java driver)
3. Network Protocol driver (completely java driver)
4. Thin driver (completely java driver)
1) The ODBC driver should be introduced on the
customer machine.
2) Native-API driver The Native API driver utilizes the
customer side libraries of the database.
The driver changes over JDBC technique
calls into local calls of the database API. It is not
composed totally in java.
Favorable position: performance updated than JDBC-
ODBC connect driver.
Burden: The Native driver should be introduced on the
every
customer machine: The Vendor customer library
should be introduced on customer machine.
3) Network Protocol driver :
The Network Protocol driver
utilizes middleware (application server) that
proselytes JDBC calls straightforwardly or in a
roundabout way into the merchant particular
database convention. It is completely composed in
java.
Preferred standpoint: No customer side library is
required in light of utilization server that can
perform many errands like examining, stack
adjusting, logging and so on.
Detriments: Network bolster is required on
customer machine.
1) JDBC-ODBC bridge driver
The JDBC-ODBC bridge driver uses ODBC
driver to connect to the database. The JDBC-ODBC
bridge driver converts JDBC method calls into the
ODBC function calls. This is now discouraged
because of thin driver.
Advantages:
easy to use.
can be easily connected to any database.
Disadvantages:
Performance degraded because JDBC method call is
converted into the ODBC function calls.
The ODBC driver needs to be installed on the client
machine.
2) Native-API driver
The Native API driver uses the client-side
libraries of the database. The driver converts JDBC
method calls into native calls of the database API. It
is not written entirely in java.
Advantage:
performance upgraded than JDBC-ODBC bridge
driver.
Disadvantage:
The Native driver needs to be installed on the each
client machine.
The Vendor client library needs to be installed on
client machine.
3) Network Protocol driver
The Network Protocol driver uses middleware
(application server) that converts JDBC calls directly
or indirectly into the vendor-specific database
protocol. It is fully written in java.
Advantage:
No client side library is required because of
application server that can perform many tasks like
auditing, load balancing, logging etc.
Disadvantages:
Network support is required on client machine.
Requires database-specific coding to be done in
the middle tier.
Maintenance of Network Protocol driver becomes
costly because it requires database-specific
coding to be done in the middle tier.
4) Thin driver
The thin driver converts JDBC calls directly into
the vendor-specific database protocol. That is
why it is known as thin driver. It is fully written
in Java language.
Advantage:
Better performance than all other drivers.
No software is required at client side or server side.
Disadvantage:
Drivers depends on the Database.
Introduction of java jdbc
Introduction of java jdbc

More Related Content

What's hot

A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion development
DataNext Solutions
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
odedns
 

What's hot (20)

Devjyotippt
DevjyotipptDevjyotippt
Devjyotippt
 
Ejb course in-mumbai
Ejb course in-mumbaiEjb course in-mumbai
Ejb course in-mumbai
 
Jdbc driver types
Jdbc driver typesJdbc driver types
Jdbc driver types
 
enterprise java bean
enterprise java beanenterprise java bean
enterprise java bean
 
Java EE EJB Applications
Java EE EJB ApplicationsJava EE EJB Applications
Java EE EJB Applications
 
Java bean
Java beanJava bean
Java bean
 
PPT on JAVA
PPT  on JAVA PPT  on JAVA
PPT on JAVA
 
Ejb notes
Ejb notesEjb notes
Ejb notes
 
J2EE Architecture Explained
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture Explained
 
J2ee architecture
J2ee architectureJ2ee architecture
J2ee architecture
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
 
Jdbc
JdbcJdbc
Jdbc
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
 
A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion development
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
 
J2EE and Servlet
J2EE and Servlet J2EE and Servlet
J2EE and Servlet
 
Ajp notes-chapter-05
Ajp notes-chapter-05Ajp notes-chapter-05
Ajp notes-chapter-05
 
Enterprise Java Beans - EJB
Enterprise Java Beans - EJBEnterprise Java Beans - EJB
Enterprise Java Beans - EJB
 
Vinay
VinayVinay
Vinay
 
Entity beans in java
Entity beans in javaEntity beans in java
Entity beans in java
 

Similar to Introduction of java jdbc

jdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptxjdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptx
ssuser8878c1
 

Similar to Introduction of java jdbc (20)

Jdbc drivers
Jdbc driversJdbc drivers
Jdbc drivers
 
jdbc document
jdbc documentjdbc document
jdbc document
 
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
 jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
jdbc Java Database Connectivity ujjwal matoliya jdbc.pptx
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
JDBC java database connectivity with dbms
JDBC java database connectivity with dbmsJDBC java database connectivity with dbms
JDBC java database connectivity with dbms
 
Chapter2 j2ee
Chapter2 j2eeChapter2 j2ee
Chapter2 j2ee
 
Jdbc
JdbcJdbc
Jdbc
 
jdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptxjdbc-130913021409-phpapp01000988www.pptx
jdbc-130913021409-phpapp01000988www.pptx
 
JDBC Architecture and Drivers
JDBC Architecture and DriversJDBC Architecture and Drivers
JDBC Architecture and Drivers
 
Unit 5-jdbc2
Unit 5-jdbc2Unit 5-jdbc2
Unit 5-jdbc2
 
Java unit 14
Java unit 14Java unit 14
Java unit 14
 
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 drivers
Jdbc driversJdbc drivers
Jdbc drivers
 
Jdbc 1
Jdbc 1Jdbc 1
Jdbc 1
 
Advanced JAVA
Advanced JAVAAdvanced JAVA
Advanced JAVA
 
Jdbc
JdbcJdbc
Jdbc
 
JDBC : Java Database Connectivity
JDBC : Java Database Connectivity JDBC : Java Database Connectivity
JDBC : Java Database Connectivity
 

Recently uploaded

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

Introduction of java jdbc

  • 2. Before JDBC, ODBC API was the database API to associate and execute question with the database. Be that as it may, ODBC API utilizes ODBC driver which is composed in C dialect (i.e. stage needy and unsecured). That is the reason Java has characterized its own API (JDBC API) that utilizations JDBC drivers (written in Java dialect).
  • 3. What is API Programming interface (Application programming interface) is a report that contains portrayal of the considerable number of elements of an item or programming. It speaks to classes and interfaces that product projects can take after to speak with each other. An API can be made for applications, libraries, working frameworks, and so forth .. Propelled JAVA Training in Marathahalli bangalore
  • 4. There are 4 sorts of JDBC drivers 1. JDBC-ODBC connect driver 2. Native-API driver (mostly java driver) 3. Network Protocol driver (completely java driver) 4. Thin driver (completely java driver)
  • 5. 1) The ODBC driver should be introduced on the customer machine. 2) Native-API driver The Native API driver utilizes the customer side libraries of the database. The driver changes over JDBC technique calls into local calls of the database API. It is not composed totally in java.
  • 6. Favorable position: performance updated than JDBC- ODBC connect driver. Burden: The Native driver should be introduced on the every customer machine: The Vendor customer library should be introduced on customer machine.
  • 7. 3) Network Protocol driver : The Network Protocol driver utilizes middleware (application server) that proselytes JDBC calls straightforwardly or in a roundabout way into the merchant particular database convention. It is completely composed in java. Preferred standpoint: No customer side library is required in light of utilization server that can perform many errands like examining, stack adjusting, logging and so on.
  • 8. Detriments: Network bolster is required on customer machine. 1) JDBC-ODBC bridge driver The JDBC-ODBC bridge driver uses ODBC driver to connect to the database. The JDBC-ODBC bridge driver converts JDBC method calls into the ODBC function calls. This is now discouraged because of thin driver.
  • 9. Advantages: easy to use. can be easily connected to any database. Disadvantages: Performance degraded because JDBC method call is converted into the ODBC function calls. The ODBC driver needs to be installed on the client machine.
  • 10. 2) Native-API driver The Native API driver uses the client-side libraries of the database. The driver converts JDBC method calls into native calls of the database API. It is not written entirely in java. Advantage: performance upgraded than JDBC-ODBC bridge driver. Disadvantage: The Native driver needs to be installed on the each client machine. The Vendor client library needs to be installed on client machine.
  • 11. 3) Network Protocol driver The Network Protocol driver uses middleware (application server) that converts JDBC calls directly or indirectly into the vendor-specific database protocol. It is fully written in java. Advantage: No client side library is required because of application server that can perform many tasks like auditing, load balancing, logging etc.
  • 12. Disadvantages: Network support is required on client machine. Requires database-specific coding to be done in the middle tier. Maintenance of Network Protocol driver becomes costly because it requires database-specific coding to be done in the middle tier.
  • 13. 4) Thin driver The thin driver converts JDBC calls directly into the vendor-specific database protocol. That is why it is known as thin driver. It is fully written in Java language. Advantage: Better performance than all other drivers. No software is required at client side or server side. Disadvantage: Drivers depends on the Database.