JDBC Pocket Reference: A Quick Guide for Programmers

JDBC Pocket Reference: A Quick Guide for Programmers

by Donald Bales
JDBC Pocket Reference: A Quick Guide for Programmers

JDBC Pocket Reference: A Quick Guide for Programmers

by Donald Bales

Paperback

$9.95 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

JDBC—the Java Database Connectivity specification—is a complex set of application programming interfaces (APIs) that developers need to understand if they want their Java applications to work with databases. JDBC is so complex that even the most experienced developers need to refresh their memories from time to time on specific methods and details. But, practically speaking, who wants to stop and thumb through a weighty tutorial volume each time a question arises? The answer is the JDBC Pocket Reference, a data-packed quick reference that is both a time-saver and a lifesaver. The JDBC Pocket Reference offers quick look-ups for all methods of the standard JDBC classes. These include concise reviews of the procedures for common JDBC tasks such as connecting to a database, executing stored procedures, executing DDL and the like. You'll find documentation of the connect string formats for the most common databases, including Oracle, SQL-Server, and PostgreSQL. You'll even find information on working with large objects, and on using SQL99 user defined datatypes to work with object-relational data. Searching for this sort of material through large tutorials is frustrating and a waste of time, but this pocket-sized book is easy to take anywhere and makes finding the information you need a snap. O'Reilly's Pocket References have become a favorite among developers everywhere. By providing a wealth of important details in a concise, well-organized format, these handy books deliver just what you need to complete the task at hand. When you've reached a sticking point and need to get to the answer quickly, the new JDBC Pocket Reference is the book you'll want close at hand.

Product Details

ISBN-13: 9780596004576
Publisher: O'Reilly Media, Incorporated
Publication date: 01/17/2003
Pages: 151
Product dimensions: 4.25(w) x 7.00(h) x 0.43(d)

About the Author

Donald Bales is a Computer Applications Consultant specializing in the analysis, design, and programming of distributed systems; systems integration; and data warehousing. Don has over sixteen years experience with Oracle as both a developer and a database administrator, and six years experiance with Java. He is currently working on the migration of medical and industrial hygiene systems to a web environment for a major Oil company. When he is not developing applications, Donald can often be found working with horses, playing the piano, or playing the bagpipes. Donald has had several careers, and has at various times been a mechanic, a general contractor, Mr. Mom, a developer, and currently a consultant. He has a bachelor of science degree in Business from Elmhurst College in Elmhurst, Illinois. Don currently resides in Downers Grove, Illinois with his wife Diane and his daughter Kristyn. He can be contacted by email at don@donaldbales.com

Table of Contents

Introduction1
Import Statements3
JDBC Drivers4
Driver Types4
Database URLs5
Establishing a Connection10
Using DriverManager11
Using JNDI13
Examining DatabaseMetaData13
Executing Dynamic SQL14
Executing DDL14
Executing INSERT, UPDATE, or DELETE Statements15
Executing SELECT Statements16
Executing Precompiled SQL17
Executing a Stored Procedure19
Retrieving Query Results21
Navigating a Result Set22
Accessing Column Values23
Inserting, Updating, and Deleting Rows in a ResultSet24
Dynamically Determining Result Set Characteristics26
SQL/Java Data Type Mapping28
Handling NULL Values29
Detecting NULL Values with wasNull()29
Detecting NULL Values with BigDecimal30
Setting a Column to a NULL Value31
Batching Inserts and Updates31
Working with Large Objects33
Inserting a BLOB33
Retrieving a BLOB34
User-Defined Data Types36
Creating a Java Class for a UDT36
Updating a Type Map38
Inserting a UDT38
Selecting a UDT39
Row Sets40
Escape Syntax41
Transaction Management43
The JDBC API43
From the B&N Reads Blog

Customer Reviews