8.3. The JDBC API

This section describes the JDBC API and the architecture that underlies it.

8.3.1. JDBC architecture

Figure 8.1 shows the basic interaction between a JDBC client, the JDBC API, and the JDBC drivers. The client does not communicate with JDBC drivers; these are concealed within the implementation of the API. Instead it communicates exclusively with the API classes and interfaces in the java.sql package. The most important API elements are Connection, Statement (and its variants), and ResultSet, all of which are discussed below. The JDBC API communicates with low-level drivers; the application server will usually expect to be provided with one driver for each database type that is to be supported. Drivers are also discussed below. ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.