C H A P T E R  3

Images

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 ...

Get Expert Oracle JDBC Programming 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.