JDBC API Tutorial and Reference, 2/e (Paperback)
暫譯: JDBC API 教學與參考,第2版 (平裝本)

Seth White, Mark Hapner, Rick Cattell, Graham Hamilton, Maydene Fisher

  • 出版商: Addison Wesley
  • 出版日期: 1999-06-11
  • 售價: $1,800
  • 貴賓價: 9.5$1,710
  • 語言: 英文
  • 頁數: 1059
  • 裝訂: Paperback
  • ISBN: 0201433281
  • ISBN-13: 9780201433289
  • 相關分類: Java 程式語言SQL
  • 立即出貨(限量) (庫存=7)

買這商品的人也買了...

相關主題

商品描述


Table Of Contents

PART ONE.

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.
Joins.
Common SQL Commands.
Result Sets and Cursors.
Transactions.
Stored Procedures.
Metadata.

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

PART TWO.

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


Back to Top

商品描述(中文翻譯)

```
目錄

第一部分
1. 介紹
JDBC 2.0 API 包含的內容
本書使用的約定
表示功能的字型
表示新材料的圖示
索引中的特殊頁面標示
SQLException 在方法說明中隱含
一些方法說明合併
本書內容
第一部分
第二部分
建議的章節閱讀順序
按主題查找資訊的位置
網路資源
JDBC API 是什麼
JDBC 的功能
其他 API 的基礎
JDBC API 與 ODBC 和 UDA 的比較
二層和三層模型
SQL 相容性
JDBC 產品
Java 軟體框架
JDBC 驅動程式類型
獲取 JDBC 驅動程式
Java 關聯式 DBMS
其他產品
Java 概述
Java 可攜性
Java 物件導向
Java 使編寫正確的程式碼變得容易
Java 包含類別和介面的庫
Java 可擴展
Java 安全
Java 性能良好
Java 可擴展性
Java 支援多執行緒
關聯式資料庫概述
完整性規則
SELECT 語句
WHERE 子句
連接
常見 SQL 命令
結果集和游標
交易
儲存過程
元資料

2. 基本教程
開始使用
設定資料庫
建立連接
載入驅動程式
建立連接
設定資料表
創建資料表
創建 JDBC 語句
執行語句
將資料輸入資料表
從資料表獲取資料
從結果集中檢索值
使用 next 方法
使用 getXXX 方法
使用 getString 方法
更新資料表
里程碑:JDBC 的基礎
使用預備語句
何時使用 PreparedStatement 物件
創建 PreparedStatement 物件
提供 PreparedStatement 參數的值
使用迴圈設定值
executeUpdate 方法的返回值
使用連接
使用交易
禁用自動提交模式
提交交易
使用交易來保護資料完整性
何時回滾交易
儲存過程
創建儲存過程的 SQL 語句
使用 JDBC API 呼叫儲存過程
創建完整的 JDBC 應用程式
將程式碼放入類別定義中
匯入類別以使其可見
使用 main 方法
使用 try 和 catch 區塊
檢索例外
檢索警告
執行範例應用程式
範例程式碼
範例程式碼 1 和 2
範例程式碼 3 和 4
範例程式碼 5
範例程式碼 6
從應用程式創建 Applet
編寫 Applet 程式碼
執行 Applet
範例程式碼 7 和 8
使用 SQLJ 和 JDBC API 的儲存過程
創建儲存過程
安裝儲存過程
在 SQL 中聲明儲存過程

3. 進階教程
設定以使用 JDBC 2.0 API
設定以運行具有新功能的程式碼
使用程式碼範例
在可滾動結果集中移動游標
創建可滾動結果集
向前和向後移動游標
移動游標到指定行
獲取游標位置
對可更新結果集進行更新
創建可更新結果集
程式化更新結果集
程式化插入和刪除行
插入行的程式碼範例
程式化刪除行
在結果集中查看變更
獲取最新資料
批次更新
使用語句物件進行批次更新
批次更新例外
批次更新的範例程式碼
SQL3 資料類型
DISTINCT 類型
使用 SQL3 資料類型
Blob、Clob 和 Array 物件
創建 SQL 結構類型
創建 DISTINCT 類型
使用對結構類型的引用
創建 SQL REF 的範例程式碼
使用 SQL3 類型作為列值
將 SQL3 類型插入資料表
使用自定義映射
實現 SQLData
使用連接的類型映射
使用自己的類型映射
使用資料來源
使用 DataSource 物件獲取連接
部署基本的 DataSource 物件
部署其他 DataSource 實現
獲取和使用池化連接
分散式交易的部署
使用連接進行分散式交易

4. MetaData 教程
獲取有關結果集列的資訊
使用 getColumnCount 方法
範例程式碼 9
使用其他 ResultSetMetaData 方法
獲取列類型資訊
範例程式碼 10 和 11
範例程式碼 12
獲取其他資訊
使用新的 JDBC 2.0 ResultSetMetaData 功能
獲取有關結果集的其他資訊
獲取有關資料庫或資料庫系統的資訊
DatabaseMetaData 方法的類別
返回字串的方法
返回 int 的方法
返回 boolean 的方法
返回 ResultSet 物件的方法
範例程式碼 13
獲取有關 DBMS 資料類型的資訊
範例程式碼 14
獲取有關主鍵和外鍵的資訊
範例程式碼 15
範例程式碼 16
新的 JDBC 2.0 核心方法
通用應用程式
範例程式碼 17 和 18
範例程式碼 19

5. Rowset 教程
Rowset 的類型和用途
使用 Rowset
創建 Rowset 並設定屬性
Rowset 和事件通知
獲取可滾動和可更新的 Rowset
使用 Rowset 進行滾動和更新
更新 Rowset
EJB 範例
分散式應用程式
Rowset 的差異
EJB 和分散式交易
無狀態 SessionBean 物件
EJB 應用程式概述
遠端介面
Home 介面
客戶端類別
企業 Bean

第二部分
6. 陣列
陣列概述
創建陣列物件
獲取基本類型資訊
實體化陣列資料
getArray 方法的四個版本
getResultSet 方法的四個版本
使用陣列方法
儲存陣列物件
陣列介面定義
陣列方法

7. BatchUpdateException
BatchUpdateException 概述
BatchUpdateException 物件包含的內容
檢索 BatchUpdateException 資訊
BatchUpdateException 類別定義
BatchUpdateException 建構子
BatchUpdateException 方法
繼承的方法
在 BatchUpdateException 中定義的方法

8. Blob
Blob 概述
創建 Blob 物件
實體化 Blob 資料
儲存 Blob 物件
Blob 介面定義
Blob 方法

9. CallableStatement
CallableStatement 概述
創建 CallableStatement 物件
IN 參數
進行批次更新
OUT 參數
參數編號
INOUT 參數
在結果後檢索 OUT 參數
將 NULL 值作為 OUT 參數檢索
CallableStatement 定義
CallableStatement 方法
繼承的方法
在 CallableStatement 中定義的方法

10. Clob
Clob 概述
創建 Clob 物件
實體化 Clob 資料
儲存 Clob 物件
Clob 介面定義
Clob 方法

11. 連接
連接概述
開啟連接
一般使用的 URL
JDBC URL
odbc 子協定
註冊子協定
發送 SQL 語句
交易
交易隔離級別
釋放 DBMS 資源
使用類型映射
連接介面定義
連接方法
連接欄位

12. ConnectionEvent
ConnectionEvent 概述
ConnectionEvent 定義
ConnectionEvent 建構子
ConnectionEvent 方法
從 java.util.EventObject 繼承的方法
在 javax.sql.ConnectionEvent 中定義的方法

13. ConnectionEventListener
ConnectionEventListener 概述
事件通知的方法
註冊 ConnectionEventListener 物件
ConnectionEventListener 定義
ConnectionEventListener 方法

14. ConnectionPoolDataSource
ConnectionPoolDataSource 概述
連接與 PooledConnection 物件
ConnectionPoolDataSource 定義
ConnectionPoolDataSource 方法

15. DatabaseMetaData
DatabaseMetaData 概述
創建 DatabaseMetaData 物件
ResultSet 物件作為返回值
字串模式作為參數
假列
新的 JDBC 2.0 核心 API 功能
獲取進階類型資訊
DatabaseMetaData 介面定義
DatabaseMetaData 方法
DatabaseMetaData 欄位

16. DataSource
DataSource 概述
屬性
使用 JNDI
創建和註冊 DataSource 物件
連接到資料來源
DataSource 實現
記錄和追蹤
使用 JNDI 的優勢
DataSource 定義
DataSource 方法

17. DataTruncation
DataTruncation 概述
無警告或例外的資料截斷
讀取時的資料截斷
寫入時的資料截斷
DataTruncation 物件包含的內容
檢索 DataTruncation 資訊
DataTruncation 類別定義
DataTruncation 建構子
DataTruncation 方法
繼承的方法
在 DataTruncation 中定義的方法

18. 日期
日期概述
創建日期物件
已棄用的方法
檢索日期物件
進階功能
日期類別定義
日期建構子
日期方法
繼承的方法
在日期中定義的方法

19. DISTINCT 類型
DISTINCT 類型概述
創建 DISTINCT 類型物件
儲存 DISTINCT 物件
使用 DISTINCT 資料類型
DISTINCT 類型的自定義映射

20. 驅動程式
驅動程式概述
```