Traceback:http://andyluo197.spaces.live.com/blog/cns!3B1A8F6290B9DC70!175.entry
Chapter14 - END
14.批更新(Batch Update)
---14.1 批更新概述
-------14.1.1 Statements
-------14.1.2 成功的執行
-------14.1.3 在執行過程中處理失敗
-------14.1.4 PreparedStatement對象
-------14.1.5 CallableStatement對象
15.結果集(Result Sets)
---15.1 結果集分類
-------15.1.1 結果集類型
-------15.1.2 結果集并發度
-------15.1.3 結果集持久性(ResultSet Holdability)
-------------15.1.3.1 決定結果集持久性
-------15.1.4 設置結果集的類型、并發度和持久性
---15.2 創建和操縱結果集
-------15.2.1 創建結果集對象
-------15.2.2 移動游標
-------15.2.3 取值
-------------15.2.3.1 數據類型轉換
-------------15.2.3.2 結果集元數據
-------------15.2.3.3 取NULL值
-------15.2.4 修改結果集
-------------15.2.4.1 更新行
-------------15.2.4.2 刪除行
-------------15.2.4.3 插入行
-------------15.2.4.4 給定位置的更新和刪除
-------15.2.5 關閉結果集
16.高級數據類型
---16.1 SQL數據類型分類
---16.2 SQL2003類型映射
---16.3 Blob和Clob對象
-------16.3.1 創建Blob和Clob對象
-------16.3.2 在結果集中取BLOB和CLOB類型值
-------16.3.3 訪問Blob和Clob對象數據
-------16.3.4 保存Blob和Clob對象
-------16.3.5 更改Blob和Clob對象
-------16.3.6 釋放Blob和Clob資源
---16.4 Array對象
-------16.4.1 獲取Array對象
-------16.4.2 保存Array對象
-------16.4.3 更新Array對象
---16.5 Ref對象
-------16.5.1 取REF值
-------16.5.2 獲取Ref引用的對象
-------16.5.3 保存Ref對象
-------16.5.4 保存Ref引用的對象
-------16.5.5 元數據
---16.6 DISTINCT類型
-------16.6.1 獲取DISTINCT類型
-------16.6.2 保存DISTINCT類型
-------16.6.3 元數據
---16.7 結構化類型
-------16.7.1 獲取結構化類型
-------16.7.2 保存結構化類型
-------16.7.3 元數據
---16.8 數據鏈接
-------16.8.1 獲取外部數據的引用
-------16.8.2 保存外部數據的引用
-------16.8.3 元數據
17.定制類型映射
---17.1 類型映射
---17.2 類轉換
---17.3 SQL數據流
-------17.3.1 取數據
-------17.3.2 保存數據
---17.4 示例
-------17.4.1 一個SQL結構化類型
-------17.4.2 SQLData的實現
-------17.4.3 SQL類型繼承在Java語言中的鏡像
-------17.4.4 SQL DISTINCT類型映射示例
---17.5 轉換組(Transform Groups)的作用
---17.6 映射的普遍性
---17.7 NULL數據
18.和連接器(Connectors)的關系
---18.1 系統約定
---18.2 映射連接器系統約定到JDBC接口
---18.3 用連接器的RAR文件格式將JDBC驅動打包
19. SQL ROWID
---19.1 RowId合理(Validity)期限
---19.2 取RowId值
---19.3 使用RowId
20.新添的開發利器
---20.1 概覽
-------20.1.1 JDBC注釋(Annotations)
-------20.1.2 Query接口
-------20.1.3 BaseQuery接口
-------20.1.4 DataSet接口
-------20.1.5 自定義類
-------20.1.6 QueryObjectGenerator接口
---20.2 創建實現Query接口的實例
-------20.2.1 創建一個Query接口
-------20.2.2 Query接口的具體實現
-------------20.2.2.1 Connection.createQueryObject和DataSource.createQueryObject方法
-------------20.2.2.2 調用Query接口的方法
-------------20.2.2.3 關閉Query對象
---20.3 JDBC注釋(Annotations)
-------20.3.1 Query注釋
-------------20.3.1.1 sql注釋成員
-------------20.3.1.2 readOnly注釋成員
-------------20.3.1.3 connected注釋成員
-------------20.3.1.4 allColumnsMapped注釋成員
-------------20.3.1.5 scrollable注釋成員
-------------20.3.1.6 參數化的sql注釋成員
-------20.3.2 Update注釋
-------------20.3.2.1 sql注釋成員
-------------20.3.2.2 keys注釋成員
-------------20.3.2.3 返回影響行數
-------------20.3.2.4 參數化的sql注釋成員
-------20.3.3 Column注釋
-------------20.3.3.1 name注釋成員
-------------20.3.3.2 uniqueIdentifier注釋成員
-------20.3.4 AutoGeneratedKeys注釋
-------20.3.5 Table注釋
-------------20.3.5.1 name注釋成員
---20.4 數據集(DataSet)參數化類型
-------20.4.1 創建數據集參數化類型實例
-------20.4.2 操縱數據集
-------------20.4.2.1 查看數據集
-------------20.4.2.2 將數據集轉換成行集(RowSet)
-------------20.4.2.3 創建當前行的一個拷貝
-------------20.4.2.4 插入行
-------------20.4.2.5 刪除行
-------------20.4.2.6 修改行
-------------20.4.2.7 關閉數據集對象
-------------20.4.2.8 同步數據集對象
---20.5 QueryObjectFactory類
-------20.5.1 QueryObjectFactory的方法
-------------20.5.1.1 createDefaultQueryObject方法
-------------20.5.1.2 createQueryObject方法
-------20.5.2 管理事務
21.SQL2003和XML
22.包裝器(Wrapper)
附錄A.修正歷史
附錄B.數據類型轉換表
附錄C.標量方法(Scalar Functions)
------C.1 數字方法
------C.2 字符串方法
------C.3 時間和日期方法
------C.4 系統方法
------C.5 轉換方法
附錄D.JDBC注釋
------D.1 AutogeneratedKeys(自動生成關鍵字)注釋
------D.2 Query(查詢)注釋
------D.3 Update(更新)注釋
------D.4 Column(列)注釋
------D.5 Table(表)注釋
附錄E.相關文檔
英文原文:
14. Batch Updates 117
14.1 Description of Batch Updates 117
14.1.1 Statements 117
14.1.2 Successful Execution 118
14.1.3 Handling Failures during Execution 119
14.1.4 PreparedStatement Objects 120
14.1.5 CallableStatement Objects 121
15. Result Sets 123
15.1 Kinds of ResultSet Objects 123
15.1.1 ResultSet Types 123
15.1.2 ResultSet Concurrency 124
15.1.3 ResultSet Holdability 125
15.1.3.1 Determining ResultSet Holdability 125
15.1.4 Specifying ResultSet Type, Concurrency and Holdability 126
15.2 Creating and Manipulating ResultSet Objects 126
15.2.1 Creating ResultSet Objects 126
15.2.2 Cursor Movement 127
15.2.3 Retrieving Values 128
15.2.3.1 Data Type Conversions 129
15.2.3.2 ResultSet Metadata 129
15.2.3.3 Retrieving NULL values 129
15.2.4 Modifying ResultSet Objects 129
15.2.4.1 Updating a Row 130
15.2.4.2 Deleting a Row 131
15.2.4.3 Inserting a Row 132
15.2.4.4 Positioned Updates and Deletes 133
15.2.5 Closing a ResultSet Object 134
16. Advanced Data Types 135
16.1 Taxonomy of SQL Types 135
16.2 Mapping of SQL2003 Types 137
16.3 Blob and Clob Objects 137
16.3.1 Creating Blob and Clob Objects 137
16.3.2 Retrieving BLOB and CLOB Values in a ResultSet 138
16.3.3 Accessing Blob and Clob Object Data 138
16.3.4 Storing Blob and Clob Objects 139
16.3.5 Altering Blob and Clob Objects 140
16.3.6 Releasing Blob and Clob Resources 140
16.4 Array Objects 141
16.4.1 Retrieving Array Objects 141
16.4.2 Storing Array Objects 141
16.4.3 Updating Array Objects 142
16.5 Ref Objects 142
16.5.1 Retrieving REF Values 142
16.5.2 Retrieving the Referenced Value 143
16.5.3 Storing Ref Objects 143
16.5.4 Storing the Referenced Value 143
16.5.5 Metadata 144
16.6 Distinct Types 144
16.6.1 Retrieving Distinct Types 144
16.6.2 Storing Distinct Types 145
16.6.3 Metadata 145
16.7 Structured Types 146
16.7.1 Retrieving Structured Types 146
16.7.2 Storing Structured Types 146
16.7.3 Metadata 147
16.8 Datalinks 147
16.8.1 Retrieving References to External Data 148
16.8.2 Storing References to External Data 148
16.8.3 Metadata 148
17. Customized Type Mapping 149
17.1 The Type Mapping 149
17.2 Class Conventions 150
17.3 Streams of SQL Data 151
17.3.1 Retrieving Data 151
17.3.2 Storing Data 152
17.4 Examples 153
17.4.1 An SQL Structured Type 153
17.4.2 SQLData Implementations 155
17.4.3 Mirroring SQL Inheritance in the Java Programming Language 159
17.4.4 Example Mapping of SQL DISTINCT Type 160
17.5 Effect of Transform Groups 161
17.6 Generality of the Approach 162
17.7 NULL Data 162
18. Relationship to Connectors 165
18.1 System Contracts 165
18.2 Mapping Connector System Contracts to JDBC Interfaces 166
18.3 Packaging JDBC Drivers in Connector RAR File Format 167
19. SQL ROWID 169
19.1 Lifetime of RowId Validity 169
19.2 Retrieving RowId Values 170
19.3 Using RowId Values 170
20. Ease of Development 173
20.1 Overview 173
20.1.1 JDBC Annotations 173
20.1.2 Query Interface 174
20.1.3 BaseQuery Interface 174
20.1.4 DataSet interface 174
20.1.5 User-Defined Class 175
20.1.6 QueryObjectGenerator Interface 176
20.2 Creating an instance of a Query interface 176
20.2.1 Creating a Query Interface 176
20.2.2 Concrete Query Interface implementation 177
20.2.2.1 Connection.createQueryObject and DataSource.createQueryObject methods 177
20.2.2.2 Invoking Query Interface Methods 178
20.2.2.3 Closing a Query Object 178
20.3 JDBC Annotations 178
20.3.1 Query Annotation 179
20.3.1.1 sql annotation element 179
20.3.1.2 readOnly annotation element 180
20.3.1.3 connected annotation element 180
20.3.1.4 allColumnsMapped annotation element 180
20.3.1.5 scrollable annotation element 182
20.3.1.6 Parameterized sql Annotation element 182
20.3.2 Update Annotation 183
20.3.2.1 sql annotation element 183
20.3.2.2 keys annotation element 184
20.3.2.3 Returning an Update Count 184
20.3.2.4 Parameterized sql Annotation element 184
20.3.3 Column Annotation 185
20.3.3.1 name annotation element 185
20.3.3.2 uniqueIdentifier annotation element 186
20.3.4 AutoGeneratedKeys annotation 187
20.3.5 Table Annotation 188
20.3.5.1 name annotation element 188
20.4 DataSet Parameterized Type 189
20.4.1 Creating a DataSet Parameterized Type Instance 190
20.4.2 Manipulating a DataSet 190
20.4.2.1 Traversing a DataSet 191
20.4.2.2 Converting a DataSet to a RowSet 191
20.4.2.3 Creating a copy of the Current Row 191
20.4.2.4 Inserting Rows 191
20.4.2.5 Deleting Rows 193
20.4.2.6 Modifying Rows 193
20.4.2.7 Closing a DataSet Object 194
20.4.2.8 Synchronizing a DataSet 194
20.5 QueryObjectFactory Class 195
20.5.1 QueryObjectFactory Methods 195
20.5.1.1 createDefaultQueryObject method 195
20.5.1.2 createQueryObject method 196
20.5.2 Managing Transactions 196
21. SQL:2003 and XML 197
22. Wrapper 199
A. Revision History 201
B. Data Type Conversion Tables 203
C. Scalar Functions 211
C.1 NUMERIC FUNCTIONS 211
C.2 STRING FUNCTIONS 212
C.3 TIME and DATE FUNCTIONS 213
C.4 SYSTEM FUNCTIONS 213
C.5 CONVERSION FUNCTIONS 214
D. JDBC Annotations 215
D.1 AutogeneratedKeys Annotation 215
D.2 Query Annotation 215
D.3 Update Annoation 216
D.4 Column Annotation 216
D.5 Table Annotation 216
E. Related Documents 217
歡迎提出修改意見