JDBC API Tutorial and Reference, Second Edition: Universal Data Access for the Java 2 Platform / Edition 2

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Paperback)
  • All (19) from $1.99   
  • New (4) from $39.50   
  • Used (15) from $1.99   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
Seller since 2015

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

Brand New Item.

Ships from: Chatham, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Seller since 2008

Feedback rating:


Condition: New

Ships from: fallbrook, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by


This book provides the definitive description of the JDBC API, the technology that enables universal data access for the Java programming language. This new edition has been updated and expanded to cover all of the JDBC 2.0 API, including the JDBC 2.0 core API and the JDBC Standard Extension API, the package that facilitates building server-side applications.. "Containing in-depth explanations that go beyond the specification, this complete resource pairs a step-by-step tutorial with a comprehensive reference to all of the classes and interfaces.. "For those new to Java technology, this book includes an introduction to the Java programming language and to SQL. It builds on this basic knowledge to walk you through creating a JDBC application - from setting up a database and establishing a connection to retrieving values from result sets and using prepared statements. In addition, the authors provide many examples along the way that demonstrate how to execute common tasks. It then proceeds to more advanced topics, focusing on the new features of the JDBC 2.0 API, including scrollable and updatable result sets, batch updates, SQL3 data types, custom mapping, and more.
Read More Show Less

Editorial Reviews

Provides a definitive description of the JDBC API, the technology that enables universal data access for the Java programming language. Combines a step-by-step tutorial with a comprehensive reference to all of the classes and interface, and gives in-depth explanations that go beyond the specification. Offers an introduction for those new to the Java programming language and to SQL, then walks through creating a JDBC application, with many examples, and discusses advanced topics. White is a member of the technical staff at Java Software, where he led the design of the JDBC 2.0 API. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780201433289
  • Publisher: Pearson Education
  • Publication date: 6/11/1999
  • Series: Addison-Wesley Java Series
  • Edition description: ANN
  • Edition number: 2
  • Pages: 1059
  • Product dimensions: 7.40 (w) x 9.22 (h) x 1.95 (d)

Meet the Author

Seth White is a member of the technical staff at Java Software, where he led the design of the JDBC 2.0 API.

Maydene Fisher has extensive experience as a technical writer specializing in the documentation of object-oriented programming languages. Fisher began her technical writing career on Wall Street, where she documented complex computer models, written in C++, for simulating fixed income derivatives. Before joining the JDBC team at JavaSoft she wrote documentation for ScriptX, an object-oriented multimedia scripting language, at Kaleida Labs and at Apple Computer.

Dr. Rick Cattell, a Distinguished Engineer at JavaSoft, led the design of the JDBC API. He is currently Chief Architect for the Java Enterprise Technologies group. He was previously responsible for SunSoft's NEO CORBA database integration and the Sun Simplify database GUI. Widely recognized for his contributions to the database field, Dr. Cattell was a cofounder of SQL Access, founder and chair of the Object Database Management Group (ODMG), and author of the first monograph on object database systems as well as more than 40 papers and 3 books.

Dr. Graham Hamilton is a Distinguished Engineer at JavaSoft where he led the design of the JDBC API, the JavaOS(tm) standalone Java system, and the JavaBeans(tm) component architecture. He was previously the technical lead for the Spring distributed object-oriented operating system project at Sun, and he has written a variety of papers and patents on operating systems and distributed systems.

Mark Hapner is a member of Java Software, where he authored the Java Messaging Service (JMS) specification, co-authored the Enterprise JavaBeans(EJB) specification, and contributed to the JDBC API design.

Read More Show Less

Read an Excerpt

Chapter 5: Rowset Tutorial

Rowsets make it easy to send tabular data over a network. They can also be used to provide scrollable result sets or updatable result sets when the underlying JDBC driver does not support them. These are the main uses for a rowset, and this tutorial will walk you through examples of these uses. Because there can be so many variations in rowsets, the first part of this chapter gives a conceptual description of rowsets and their uses. The next part walks you through creating and using a rowset. The last part shows you how a rowset can be used in a distributed Enterprise JavaBeans™ (EJB) application.

5.1 Types and Uses of Rowsets

A RowSet object contains a set of rows from a result set or some other source of tabular data, like a file or spreadsheet. Because a RowSet object follows the JavaBeans model for properties and event notification, it is a JavaBeans component that can be combined with other components in an application. As is true with other Beans, application programmers will probably use a development tool to create a RowSet object and set its properties.

Rowsets may have many different implementations to fill different needs. These implementations fall into two broad categories, rowsets that are connected and those that are disconnected. A disconnected rowset gets a connection to a data source in order to fill itself with data or to propagate changes in data back to the data source, but most of the time it does not have a connection open. While it is disconnected, it does not need a JDBC driver or the full JDBC API, so its footprint is very small. Thus a rowset is an ideal format for sending data over a network to a thin client.

Because it is not continually connected to its data source, a disconnected rowset stores its data in memory. It needs to maintain metadata about the columns it contains and information about its internal state. It also needs a facility for making connections, for executing commands, and for reading and writing data to and from the data source. A connected rowset, by contrast, opens a connection and keeps it open for as long as the rowset is in use.

Although anyone can implement a rowset, most implementations will probably be provided by vendors offering RowSet classes designed for fairly specific purposes. To make writing an implementation easier, the Java Software division of Sun Microsystems, Inc., plans to provide reference implementations for three different styles of rowsets in the future. The following list of planned implementations gives you an idea of some of the possibilities.

  1. A CachedRowSet class - a disconnected rowset that caches its data in memory; not suitable for very large data sets, but an ideal way to provide thin Java clients, such as a Personal Digital Assistant (PDA) or Network Computer (NC), with tabular data
  2. A JDBCRowSet class - a connected rowset that serves mainly as a thin wrapper around a ResultSet object to make a JDBC driver look like a JavaBeans component
  3. A WebRowSet class - a connected rowset that uses the HTTP protocol internally to talk to a Java servlet that provides data access; used to make it possible for thin web clients to retrieve and possibly update a set of rows

5.2 Using a Rowset

As the conceptual description of rowsets pointed out, what you can do with a rowset depends on how it has been implemented. It can also depend on which properties have been set. The example rowsets used in this chapter are based on the CachedRowSet implementation, but because they are used for different purposes, one has several properties set whereas the other has none. Among other things, this tutorial will show you which properties to use and when to use them.

Getting back to our owner of The Coffee Break chain, he has had one of his developers write an application that lets him project the effects of changing different coffee prices. To create this application, the developer hooked together various JavaBeans components, setting their properties to customize them for his application. The first JavaBeans component, called Projector, was one that the owner bought from an economic forecasting firm. This Bean takes all kinds of factors into account to project future revenues. Given the price and past sales performance of a coffee, it predicts the revenue the coffee is likely to generate and displays the results as a bar chart.

The second JavaBeans component is a CachedRowSet. The owner wants to be able to look at different coffee pricing scenarios using his laptop, so the application is set up such that it creates a rowset that can be copied to the laptop's disc. The owner can later fire up the application on his laptop so that he can make updates to the rowset to test out various pricing strategies.

The third Bean is a form for displaying and updating ResultSet objects. The form can be used for displaying and updating our CachedRowSet because CachedRowSet is simply a specialized implementation of ResultSet.

The application has a graphical user interface that includes buttons for opening and closing the application. These buttons are themselves JavaBeans components that the programmer assembled to make the GUI for his application.

While he is at work, the owner can click on the form's New Data button to get a rowset filled with data. This is the work that requires the rowset to get a connection to the data source, execute its query, get a result set, and populate itself with the result set data. When this work is done, the rowset disconnects itself. The owner can now click on the Close button to save the disconnected rowset to his laptop's disc. At home or on a plane, the owner can open the application on his laptop and click the button Open to copy the rowset from disc and start making updates using the form. The form displays the rowset, and he simply uses arrow keys or tabs to highlight the piece of data he wants to update. He uses the editing component of the form to type in new values, and the Projector Bean shows the effects of the new values in its bar chart. When he gets back to headquarters, the owner can copy his updated rowset to his office computer if he wants to propagate the updates back to the database.

As part of the implementation, the application programmer will do the following:

  • Create the CachedRowSet Bean and set its properties
  • Register the Projector Bean as a listener to the rowset
  • Create the GUI for the application and implement the actions of the open and close buttons
  • Specify the rowset as a property on the form Bean

To put this all together, the application programmer will probably use a visual Bean development tool, which means that he will use very little RowSet API directly. Of course, the owner will use the application without writing any RowSet code himself. The upshot of all of this is that generally tools will generate the RowSet code you see in this tutorial. Also, remember that the code shown here is for illustrative purposes only because it uses the CachedRowSet class, for which there is no implementation currently available. Although the JDBC Standard Extension specification gives a preliminary outline of its functionality, some details in its implementation may be different when it is completed....

Read More Show Less

Table of Contents


1. Introduction.
What the JDBC 2.0 API Includes.
Conventions Used in This Book.
Fonts to Indicate Function.
Icons to Indicate New Material.
Special Page Designations in the Index.
SQLException Is Implied in Method Explanations.
Some Method Explanations Are Combined.
Contents of the Book.
Part One.
Part Two.
Suggested Order for Reading Chapters.
Where to Find Information by Topic.
Resources on the Web.
What Is the JDBC API.
What Does JDBC Do?
A Base for Other APIs.
The JDBC API Versus ODBC and UDA.
Two-tier and Three-tier Models.
SQL Conformance.
JDBC Products.
Java Software Framework.
JDBC Driver Types.
Obtaining JDBC Drivers.
Java-relational DBMSs.
Other Products.
Java Overview.
Java Is Portable.
Java Is Object-Oriented.
Java Makes It Easy to Write Correct Code.
Java Includes a Library of Classes and Interfaces.
Java Is Extensible.
Java Is Secure.
Java Performs Well.
Java Scales Well.
Java Is Multithreaded.
Relational Database Overview.
Integrity Rules.
SELECT Statements.
WHERE Clauses.
Common SQL Commands.
Result Sets and Cursors.
Stored Procedures.

2. Basic Tutorial.
Getting Started.
Setting Up a Database.
Establishing a Connection.
Loading Drivers.
Making the Connection.
Setting Up Tables.
Creating a Table.
Creating JDBC Statements.
Executing Statements.
Entering Data into a Table.
Getting Data from a Table.
Retrieving Values from Result Sets.
Using the Method next.
Using the getxXX Methods.
Using the Method getString.
Updating Tables.
Milestone: The Basics of JDBC.
Using Prepared Statements.
When to Use a PreparedStatement Object.
Creating a PreparedStatement Object.
Supplying Values for PreparedStatement Parameters.
Using a Loop to Set Values.
Return Values for the Method executeUpdate.
Using Joins.
Using Transactions.
Disabling Auto-commit Mode.
Committing a Transaction.
Using Transactions to Preserve Data Integrity.
When to Roll Back a Transaction.
Stored Procedures.
SQL Statements for Creating a Stored Procedure.
Calling a Stored Procedure Using the JDBC API.
Creating Complete JDBC Applications.
Putting Code in a Class Definition.
Importing Classes to Make Them Visible.
Using the main Method.
Using try and catch Blocks.
Retrieving Exceptions.
Retrieving Warnings.
Running the Sample Applications.
Sample Code.
Sample Code 1 and 2.
Sample Code 3 and 4.
Sample Code 5.
Sample Code 6.
Creating an Applet from an Application.
Writing Applet Code.
Running an Applet.
Sample Code 7 and 8.
Stored Procedures Using SQLJ and the JDBC API.
Creating a Stored Procedure.
Installing a Stored Procedure.
Declaring a Stored Procedure in SQL.

3. Advanced Tutorial.
Getting Set Up to Use the JDBC 2.0 API.
Setting Up to Run Code with New Features.
Using Code Examples.
Moving the Cursor in Scrollable Result Sets.
Creating a Scrollable Result Set.
Moving the Cursor Forward and Backward.
Moving the Cursor to a Designated Row.
Getting the Cursor Position.
Making Updates to Updatable Result Sets.
Creating an Updatable Result Set.
Updating a Result Set Programmatically.
Inserting and Deleting Rows Programmatically.
Code Sample for Inserting a Row.
Deleting a Row Programmatically.
Seeing Changes in Result Sets.
Getting the Most Recent Data.
Making Batch Updates.
Using Statement Objects for Batch Updates.
Batch Update Exceptions.
Sample Code for Batch Update.
SQL3 Data Types.
Using SQL3 Data Types.
Blob, Clob, and Array Objects.
Creating an SQL Structured Type.
Creating a DISTINCT Type.
Using References to Structured Types.
Sample Code for Creating an SQL REF.
Using SQL3 Types as Column Values.
Inserting SQL3 Types into a Table.
Using Custom Mapping.
Implementing SQLData.
Using a Connection's Type Map.
Using Your Own Type Map.
Using Data Sources.
Using a DataSource Object to Get a Connection.
Deploying a Basic DataSource Object.
Deploying Other DataSource Implementations.
Getting and Using a Pooled Connection.
Deployment for Distributed Transactions.
Using Connections for Distributed Transactions.

4. MetaData Tutorial.
Getting Information about Result Set Columns.
Using the Method getColumnCount.
Sample Code 9.
Using Other ResultSetMetaData Methods.
Getting Column Type Information.
Sample Code 10 and 11.
Sample Code 12.
Getting Other Information.
Using New JDBC 2.0 ResultSetMetaData Features.
Getting Other Information about a Result Set.
Getting Information about a Database or Database System.
Categories of DatabaseMetaData Methods.
Methods that Return a String.
Methods that Return an int.
Methods that Return a boolean.
Methods that Return a ResultSet Object.
Sample Code 13.
Getting Information about DBMS Data Types.
Sample Code 14.
Getting Information about Primary and Foreign Keys.
Sample Code 15.
Sample Code 16.
New JDBC 2.0 Core Methods.
Generic Applications.
Sample Code 17 and 18.
Sample Code 19.

5. Rowset Tutorial.
Types and Uses of Rowsets.
Using a Rowset.
Creating a Rowset and Setting Properties.
Rowsets and Event Notification.
Obtaining a Scrollable and Updatable Rowset.
Using a Rowset for Scrolling and Updating.
Updating a Rowset.
An EJB Example.
A Distributed Application.
Differences in Rowsets.
EJB and Distributed Transactions.
A Stateless SessionBean Object.
Overview of an EJB Application.
The Remote Interface.
The Home Interface.
The Client Class.
The Enterprise Bean.


6. Array.
Array Overview.
Creating an Array Object.
Getting Base Type Information.
Materializing Array Data.
Four Versions of the Method getArray.
Four Versions of the Method getResultSet.
Using Array Methods.
Storing Array Objects.
Array Interface Definition.
Array Methods.

7. BatchUpdateException.
BatchUpdateException Overview.
What a BatchUpdateException Object Contains.
Retrieving BatchUpdateException Information.
BatchUpdateException Class Definition.
BatchUpdateException Constructors.
BatchUpdateException Methods.
Inherited Methods.
Methods Defined in BatchUpdateException.

8. Blob.
Blob Overview.
Creating a Blob Object.
Materializing Blob Data.
Storing a Blob Object.
Blob Interface Definition.
Blob Methods.

9. CallableStatement.
CallableStatement Overview.
Creating a CallableStatement Object.
IN Parameters.
Making Batch Updates.
OUT Parameters.
Numbering of Parameters.
INOUT Parameters.
Retrieve OUT Parameters after Results.
Retrieving NULL Values as OUT Parameters.
CallableStatement Definition.
CallableStatement Methods.
Inherited Methods.
Methods Defined in CallableStatement.

10. Clob.
Clob Overview.
Creating a Clob Object.
Materializing Clob Data.
Storing a Clob Object.
Clob Interface Definition.
Clob Methods.

11. Connection.
Connection Overview.
Opening a Connection.
URLs in General Use.
The odbc Subprotocol.
Registering Subprotocols.
Sending SQL Statements.
Transaction Isolation Levels.
Freeing DBMS Resources.
Using Type Maps.
Connection Interface Definition.
Connection Methods.
Connection Fields.

12. ConnectionEvent.
ConnectionEvent Overview.
ConnectionEvent Definition.
ConnectionEvent Constructors.
ConnectionEvent Methods.
Methods Inherited from java.util.EventObject.
Methods Defined in javax.sql.ConnectionEvent.

13. ConnectionEventListener.
ConnectionEventListener Overview.
Methods for Event Notification.
Registering a ConnectionEventListener Object.
ConnectionEventListener Definition.
ConnectionEventListener Methods.

14. ConnectionPoolDataSource.
ConnectionPoolDataSource Overview.
Connection vs. PooledConnection Objects.
ConnectionPoolDataSource Definition.
ConnectionPoolDataSource Methods.

15. DatabaseMetaData.
DatabaseMetaData Overview.
Creating a DatabaseMetaData Object.
ResultSet Objects as Return Values.
String Patterns as Arguments.
Pseudo Columns.
New JDBC 2.0 Core API Features.
Getting Advanced Type Information.
DatabaseMetaData Interface Definition.
DatabaseMetaData Methods.
DatabaseMetaData Fields.

16. DataSource.
DataSource Overview.
Using JNDI.
Creating and Registering a DataSource Object.
Connecting to a Data Source.
DataSource Implementations.
Logging and Tracing.
Advantages of Using JNDI.
DataSource Definition.
DataSource Methods.

17. DataTruncation.
DataTruncation Overview.
Data Truncation with No Warning or Exception.
Data Truncation on Reads.
Data Truncation on Writes.
What a DataTruncation Object Contains.
Retrieving DataTruncation Information.
DataTruncation Class Definition.
DataTruncation Constructor.
DataTruncation Methods.
Inherited Methods.
Methods Defined in DataTruncation.

18. Date.
Date Overview.
Creating a Date Object.
Deprecated Methods.
Retrieving a Date Object.
Advanced Features.
Date Class Definition.
Date Constructors.
Date Methods.
Inherited Methods.
Methods Defined in Date.

19. Distinct Types.
Distinct Types Overview.
Creating a Distinct Type Object.
Storing Distinct Objects.
Using Distinct Data Types.
Custom Mapping of Distinct Types.

20. Driver.
Driver Overview.
Loading and Registering a Driver.
JDBC Implementation Alternatives.
Driver Interface Definition.
Driver Methods.

21. DriverManager.
DriverManager Overview.
Keeping Track of Available Drivers.
Establishing a Connection.
DriverManager Methods Are Static.
DriverManager Class Definition.
DriverManager Methods.

22. DriverPropertyInfo.
DriverPropertyInfo Overview.
Creating a DriverPropertyInfo Object.
Getting and Setting Fields.
DriverPropertyInfo Class Definition.
DriverPropertyInfo Constructor.
DriverPropertyInfo Fields.

23. PooledConnection.
PooledConnection Overview.
Application Code for Connection Pooling.
How Connection Pooling Works.
The Life Cycle of a PooledConnection Object.
PooledConnection Definition.
PooledConnection Methods.

24. PreparedStatement.
PreparedStatement Overview.
Creating PreparedStatement Objects.
Passing IN Parameters.
Data Type Conformance on IN Parameters.
Using setObject.
Sending JDBC NULL as an IN parameter.
Sending Very Large IN Parameters.
Using PreparedStatement Objects in Batch Updates.
PreparedStatement Interface Definition.
PreparedStatement Methods.
Methods Inherited from Statement.
Methods Defined in PreparedStatement.

25. Ref.
Ref Overview.
Creating an SQL Reference.
Creating a Ref Object.
Storing a Ref Object.
Dereferencing a Ref Object.
Ref Interface Definition.
Ref Methods.

26. ResultSet.
ResultSet Overview.
Rows and Columns.
Cursor Movement Examples.
Determining the Number of Rows in a Result Set.
Retrieving Column Values.
Which getxXX Method to Use.
Types of Result Sets.
Concurrency Types.
Providing Performance Hints.
Creating Different Types of Result Sets.
Using a Prepared Statement to Create Result Sets.
Requesting Features That Are Not Supported.
Using updatexXX Methods.
Deleting a Row.
Inserting Rows.
Positioned Updates.
Queries That Produce Updatable Result Sets.
What Is Visible to Transactions.
Visibility of Changes Made by Others.
Visibility of a Result Set's Own Changes.
Detecting Changes.
Refetching a Row.
Using Streams for Very Large Row Values.
NULL Result Values.
Optional or Multiple Result Sets.
Closing a ResultSet Object.
JDBC Compliance.
ResultSet Interface Definition.
ResultSet Methods.
ResultSet Fields.

27. ResultSetMetaData.
ResultSetMetaData Overview.
Creating a ResultSetMetaData Object.
Using ResultSetMetaData.
ResultSetMetaData Interface Definition.
ResultSetMetaData Methods.
ResultSetMetaData Fields.

28. RowSet.
RowSet Overview.
The Event Model for Rowsets.
Properties for a Rowset.
Setting Parameters.
Traversing a RowSet Object.
Executing a Command.
Using a RowSet Object's Metadata.
An Example Implementation.
Overview of CachedRowSet.
Uses for a CachedRowSet Object.
Sample CachedRowSet Definition.
Creating a CachedRowSet Object.
Populating a CachedRowSet Object.
Accessing Data.
Modifying Data.
Customizing Readers and Writers.
Other Methods.
Other Possible Implementations.
JDBCRowSet Class.
The WebRowSet Class.
RowSet Definition.
RowSet Methods.
Methods Inherited from ResultSet.
Methods Defined in RowSet.
RowSet Fields.

29. RowSetEvent.
RowSetEvent Overview.
RowSet Events.
Creating a RowSetEvent Object.
RowSetEvent Definition.
RowSetEvent Constructor.
RowSetEvent Methods.
Inherited Methods.

30. RowSetInternal.
RowSetInternal Overview.
RowSetInternal Definition.
RowSetInternal Methods.

31. RowSetListener.
RowSetListener Overview.
Registering and Deregistering a Listener.
Using RowSetListener Methods.
RowSetListener Definition.
RowSetListener Methods.

32. RowSetMetaData.
RowSetMetaData Overview.
RowSetMetaData Definition.
RowSetMetaData Methods.
Methods Inherited from ResultSetMetaData.
Methods Defined in RowSetMetaData.
RowSetMetaData Fields.

33. RowSetReader.
RowSetReader Overview.
The Reader/Writer Framework.
Reading Data for a Disconnected Rowset.
RowSetReader Definition.
RowSetReader Methods.

34. RowSetWriter.
RowSetWriter Overview.
RowSetWriter Definition.
RowSetWriter Methods.

35. SQLData.
SQLData Overview.
Creating a Custom Mapping.
How SQLData Retrieves an Object.
How SQLData Is Used to Store an Object.
SQLData Interface Definition.
SQLData Methods.

36. SQLException.
SQLException Overview.
What an SQLException Object Contains.
Retrieving SQLException Information.
What an SQLException Means.
SQLException Class Definition.
SQLException Constructors.
SQLException Methods.
Inherited Methods.
Methods Defined in SQLException.

37. SQLInput.
SQLInput Overview.
Creating an SQLInput Object.
Using readxXX Methods.
SQLInput Interface Definition.
SQLInput Methods.

38. SQLOutput.
SQLOutput Overview.
SQLOutput Interface Definition.
SQLOutput Methods.

39. SQLWarning.
SQLWarning Overview.
What an SQLWarning Object Contains.
Retrieving SQLWarning Information.
SQLWarning Class Definition.
SQLWarning Constructors.
SQLWarning Methods.
Inherited Methods.
Methods Defined in SQLWarning.

40. Statement.
Statement Overview.
Creating Statement Objects.
Executing Statements Using Statement Objects.
Statement Completion.
Closing Statements.
SQL Escape Syntax in Statements.
Sending Batch Updates.
Giving Performance Hints.
Executing Special Kinds of Statements.
Statement Interface Definition.
Statement Methods.

41. Struct.
Struct Overview.
Creating an SQL Structured Type.
Storing Referenceable Instances of a Structured Type.
Creating a Struct Object.
Mapping SQL Inheritance.
Ordering of Attributes.
Storing a Struct Object.
Struct Interface Definition.
Struct Methods.

42. Time.
Time Overview.
Creating a Time Object.
Deprecated Methods.
Retrieving a Time Object.
Advanced Features.
Time Class Definition.
Time Constructors.
Time Methods.

43. Timestamp.
Timestamp Overview.
Creating a Timestamp Object.
Retrieving a Timestamp Object.
Advanced Features.
Timestamp Class Definition.
Timestamp Constructors.
Timestamp Methods.

44. Types.
Overview of Class Types.
Using the Constants in Class Types.
Using the Constant OTHER.
JDBC Types Added in the JDBC 2.0 Core API.
Types Class Definition.

45. XAConnection.
XAConnection Overview.
Application Code in Distributed Transactions.
Distributed Transaction Requirements.
Creating an XAConnection Object.
What an XAResource Object Does.
How the Two-phase Commit Protocol Works.
Using an XAResource Object to Commit.
The XAResource Interface.
Steps in a Distributed Transaction.
Distributed Transactions and EJB.
XAConnection Definition.
XAConnection Methods.
Methods Inherited from javax.sql.PooledConnection.
Methods Defined in XAConnection.

46. XADataSource.
XADataSource Overview.
Obtaining an XADataSource Object.
XADataSource Objects and Resource Managers.
XADataSource Definition.
XADataSource Methods.

47. Mapping SQL and Java Types.
Mapping Overview.
Mapping SQL Types to Java Types.
Basic JDBC Types.
Advanced JDBC Data Types.
Examples of Mapping.
Simple SQL Statement.
SQL Statement with IN Parameters.
SQL Statement with INOUT Parameters.
Custom Mapping.
Dynamic Data Access.
Storing Java Objects in a Database.
Tables for Type Mapping.
JDBC Types Mapped to Java Types.
Java Types Mapped to JDBC Types.
JDBC Types Mapped to Java Object Types.
Java Object Types Mapped to JDBC Types.
Conversions by setObject.
Conversions by ResultSet.getxXX Methods.
Types Mapped to Database-specific SQL Types.

Appendix A: For Driver Writers.
Requirements for All Drivers.
Implement Methods in the Interfaces.
Implement a Static Initializer.
Support Extensions to SQLÜ92 Entry Level.
Support Scalar Functions.
Provide Locks for Positioned Updates and Deletes.
Support Multithreading.
Throw Exceptions for Truncated Input Parameters.
Use Default Behaviors for SQL3 Data Types.
Permitted Variants.
When Functionality Is Not Supported.
Variation in Fundamental Properties.
Adding Functionality.
Security Responsibilities of Drivers.
Check Shared TCP Connections.
Check All Local File Access.
Assume the Worst.
Use SQLException for Exceptions.
Suggested Implementations.
Prefetch Rows.
Provide ñFinalizeî Methods for Applets.
Avoid Implementation-dependent States.

Appendix B: Summary of Changes.
Overview of JDBC 2.0 Core API Changes.
Summary of New Functionality.
Scrollable Result Sets.
Batch Updates.
Programmatic Updates.
Other New Features.
Support for Advanced Data Types.
What Are the SQL3 Data Types?
Summary of Support for the SQL3 Data Types.
Mapping of the New SQL3 Types.
SQL Locators.
Support for Storing Java Objects.
Complete List of Core API Changes.
What Did Not Change.
Additions to Existing Interfaces and Classes.
Deprecated Methods and Constructors.
New Interfaces, Classes, and Exceptions.
JDBC Standard Extension Features.
Connection Pooling.
Support for Distributed Transactions.
Complete List of Extension API.
Post JDBC 1.0 API Changes.
Numeric to Bignum to BigDecimal.
AutoClose Mode Dropped.
Early Design Decisions.
ResultSet.getxXX Methods.
PreparedStatement.setxXX Methods.
CallableStatement.registerOutParameter Method.
Support for Large OUT Parameters.
isNull versus wasNull.
Java Type Names or JDBC Type Names.
Where to Send Suggestions.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)