JDBC Core Components

Figure 3.5 illustrates the major classes of the JDBC API and how they relate to each other.

Figure 3.5. The major components of the JDBC API are shown here.

Of the major JDBC components, only DriverManager is a concrete Java class. The rest of the components are Java interfaces that are implemented by the various driver packages.

DriverManager

The DriverManager class keeps track of the available JDBC drivers and creates database connections for you. Although the JDBC driver itself creates the database connection, you usually go through the DriverManager to get the connection. That way you never need to deal with the actual ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.