JBDC Program Structure

The following diagram shows the components of a JDBC application. Although not all of these components are required, there are three core actions in every application: loading the driver manager, connecting to the database, and issuing SQL statements.

The arrows represent the order in which the various JDBC calls are performed in an application. Solid lines represent steps that must be taken within an application. Broken lines represent optional steps available to the application developer. Connections, statements, and result sets should also be closed once they are no longer needed. This is highlighted by the close box symbols () in the diagram.

When an application starts, it must load the JDBC driver associated with Apache ...

Get Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ 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.