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.
JDBC URLs.
The odbc Subprotocol.
Registering Subprotocols.
Sending SQL Statements.
Transactions.
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.
Properties.
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.
Cursors.
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.
CHAR, VARCHAR, LONGVARCHAR.
BINARY, VARBINARY, LONGVARBINARY.
BIT.
TINYINT.
SMALLINT.
INTEGER.
BIGINT.
REAL.
DOUBLE.
FLOAT.
DECIMAL and NUMERIC.
DATE, TIME, and TIMESTAMP.
Advanced JDBC Data Types.
BLOB.
CLOB.
ARRAY.
DISTINCT.
STRUCT.
REF.
JAVA_OBJECT.
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.
JNDI.
Connection Pooling.
Support for Distributed Transactions.
Rowsets.
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.
Glossary. Index.