C H A P T E R 3
Introduction to JDBC
This chapter discusses the fundamentals of JDBC. It provides an overview of the JDBC interface and explains the different types of JDBC drivers that implement JDBC API and how to choose between these drivers.
The chapter largely focuses on writing JDBC connection code, both using the old-style
DriverManager, and the more elegant and flexible technique that employs data sources and, optionally, the Java Naming and Directory Interface (JNDI).
The chapter wraps up by demonstrating a fully working JDBC program that executes a query against an Oracle database and prints out the query results. This program uses ...