![]() Matches connection requests from the java application with the proper database driver using communication sub protocol. ![]() The JDBC API provides the following interfaces and classes −ĭriverManager − This class manages a list of database drivers. The driver manager is capable of supporting multiple concurrent drivers connected to multiple heterogeneous databases.įollowing is the architectural diagram, which shows the location of the driver manager with respect to the JDBC drivers and the Java application − Common JDBC Components The JDBC driver manager ensures that the correct driver is used to access each data source. The JDBC API uses a driver manager and database-specific drivers to provide transparent connectivity to heterogeneous databases. JDBC Driver API − This supports the JDBC Manager-to-Driver Connection. JDBC API − This provides the application-to-JDBC Manager connection. The JDBC API supports both two-tier and three-tier processing models for database access but in general, JDBC Architecture consists of two layers − Pre-Requisiteīefore moving further, you need to have a good understanding of the following two subjects − JDBC provides the same capabilities as ODBC, allowing Java programs to contain database-independent code. Java can be used to write different types of executables, such as −Īll of these different executables are able to use a JDBC driver to access a database, and take advantage of the stored data. ![]() Viewing & Modifying the resulting records.įundamentally, JDBC is a specification that provides a complete set of interfaces that allows for portable access to an underlying database. The JDBC library includes APIs for each of the tasks mentioned below that are commonly associated with database usage.Įxecuting SQL or MySQL queries in the database. JDBC stands for Java Data base Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |