JDBC Components
By: Sun
JDBC includes four components:
- The JDBC API —
The JDBCâ„¢ API provides programmatic access to relational data from the Javaâ„¢ programming language. Using the JDBC API, applications can execute SQL statements, retrieve results, and propagate changes back to an underlying data source. The JDBC API can also interact with multiple data sources in a distributed, heterogeneous environment.
The JDBC API is part of the Java platform, which includes the Javaâ„¢ Standard Edition (Javaâ„¢ SE ) and the Javaâ„¢ Enterprise Edition (Javaâ„¢ EE). The JDBC 4.0 API is divided into two packages:java.sql
andjavax.sql.
Both packages are included in the Java SE and Java EE platforms.
- JDBC Driver Manager —
The JDBCDriverManager
class defines objects which can connect Java applications to a JDBC driver.DriverManager
has traditionally been the backbone of the JDBC architecture. It is quite small and simple.
The Standard Extension packagesjavax.naming
andjavax.sql
let you use aDataSource
object registered with a Java Naming and Directory Interfaceâ„¢ (JNDI) naming service to establish a connection with a data source. You can use either connecting mechanism, but using aDataSource
object is recommended whenever possible.
- JDBC Test Suite —
The JDBC driver test suite helps you to determine that JDBC drivers will run your program. These tests are not comprehensive or exhaustive, but they do exercise many of the important features in the JDBC API.
- JDBC-ODBC Bridge —
The Java Software bridge provides JDBC access via ODBC drivers. Note that you need to load ODBC binary code onto each client machine that uses this driver. As a result, the ODBC driver is most appropriate on a corporate network where client installations are not a major problem, or for application server code written in Java in a three-tier architecture.
Archived Comments
1. i want to know about basic requirement for jdbc ,
is there any need of oracleserver to be un
View Tutorial By: Amit sharma at 2009-03-19 04:10:24
Comment on this tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
TEXT datatype SPLIT in MSSQL - to solve the 8000 limit set by varchar
What is Referential Integrity in databases?
Handling CSV in Stored Procedures
java.lang.NoClassDefFoundError and java.lang.NoSuchMethodError
Calling a Stored Procedure from JDBC in Java
setSavepoint and releaseSavepoint Example in Java
PreparedStatement Example in Java
Creating Database Tables Using ANT
Using the DriverManager Class vs Using a DataSource Object for a connection
Stored Procedures example in SQL