Nội dung text AJP_SEM-5_CH-2.pdf
Java Data Base Connectivity 2.2 JDBC ARCHITECTURE The JDBC (Java Database Connectivity) architecture follows a layered approach to provide a standard interface for connecting Java applications to different databases.The JDBC architecture follows a client- server model, where the Java application acts as the client and communicates with the database server through the JDBC driver. The driver translates the JDBC API calls into the corresponding database-specific protocols to perform the necessary operations on the database. The JDBC Architecture consists of two layers: The JDBC API, which provides the application-to-JDBC Manager connection The JDBC API uses a driver manager and database-specific drivers to provide transparent connectivity to different databases.The JDBC API layer acts as an abstraction layer, shielding the application from the underlying database-specific details. It provides a unified interface for interacting with different databases, enabling database-agnostic application development. It includes the following key components: - Connection - Statement PreparedStatement CallableStatement ResultSet DriverManager Java Applications JDBC API JDBC API JDBC Driver API JDBC Driver Manager JDBC-ODBC bridge JDBC Driver JDBC Driver ODBC Driver DBMS DBMS DBMS The two layers of the JDBC Architecture - • - 39199