Chapter14? -? END

          14.批更新(Batch Update)
          ---14.1 批更新概述
          -------14.1.1 Statements
          -------14.1.2 成功的執(zhí)行
          -------14.1.3 在執(zhí)行過程中處理失敗
          -------14.1.4 PreparedStatement對(duì)象
          -------14.1.5 CallableStatement對(duì)象
          15.結(jié)果集(Result Sets)
          ---15.1 結(jié)果集分類
          -------15.1.1 結(jié)果集類型
          -------15.1.2 結(jié)果集并發(fā)度
          -------15.1.3 結(jié)果集持久性(ResultSet Holdability)
          -------------15.1.3.1 決定結(jié)果集持久性
          -------15.1.4 設(shè)置結(jié)果集的類型、并發(fā)度和持久性
          ---15.2 創(chuàng)建和操縱結(jié)果集
          -------15.2.1 創(chuàng)建結(jié)果集對(duì)象
          -------15.2.2 移動(dòng)游標(biāo)
          -------15.2.3 取值
          -------------15.2.3.1 數(shù)據(jù)類型轉(zhuǎn)換
          -------------15.2.3.2 結(jié)果集元數(shù)據(jù)
          -------------15.2.3.3 取NULL值
          -------15.2.4 修改結(jié)果集
          -------------15.2.4.1 更新行
          -------------15.2.4.2 刪除行
          -------------15.2.4.3 插入行
          -------------15.2.4.4 給定位置的更新和刪除
          -------15.2.5 關(guān)閉結(jié)果集
          16.高級(jí)數(shù)據(jù)類型
          ---16.1 SQL數(shù)據(jù)類型分類
          ---16.2 SQL2003類型映射
          ---16.3 Blob和Clob對(duì)象
          -------16.3.1 創(chuàng)建Blob和Clob對(duì)象
          -------16.3.2 在結(jié)果集中取BLOB和CLOB類型值
          -------16.3.3 訪問Blob和Clob對(duì)象數(shù)據(jù)
          -------16.3.4 保存Blob和Clob對(duì)象
          -------16.3.5 更改Blob和Clob對(duì)象
          -------16.3.6 釋放Blob和Clob資源
          ---16.4 Array對(duì)象
          -------16.4.1 獲取Array對(duì)象
          -------16.4.2 保存Array對(duì)象
          -------16.4.3 更新Array對(duì)象
          ---16.5 Ref對(duì)象
          -------16.5.1 取REF值
          -------16.5.2 獲取Ref引用的對(duì)象
          -------16.5.3 保存Ref對(duì)象
          -------16.5.4 保存Ref引用的對(duì)象
          -------16.5.5 元數(shù)據(jù)
          ---16.6 DISTINCT類型
          -------16.6.1 獲取DISTINCT類型
          -------16.6.2 保存DISTINCT類型
          -------16.6.3 元數(shù)據(jù)
          ---16.7 結(jié)構(gòu)化類型
          -------16.7.1 獲取結(jié)構(gòu)化類型
          -------16.7.2 保存結(jié)構(gòu)化類型
          -------16.7.3 元數(shù)據(jù)
          ---16.8 數(shù)據(jù)鏈接
          -------16.8.1 獲取外部數(shù)據(jù)的引用
          -------16.8.2 保存外部數(shù)據(jù)的引用
          -------16.8.3 元數(shù)據(jù)
          17.定制類型映射
          ---17.1 類型映射
          ---17.2 類轉(zhuǎn)換
          ---17.3 SQL數(shù)據(jù)流
          -------17.3.1 取數(shù)據(jù)
          -------17.3.2 保存數(shù)據(jù)
          ---17.4 示例
          -------17.4.1 一個(gè)SQL結(jié)構(gòu)化類型
          -------17.4.2 SQLData的實(shí)現(xiàn)
          -------17.4.3 SQL類型繼承在Java語言中的鏡像
          -------17.4.4 SQL DISTINCT類型映射示例
          ---17.5 轉(zhuǎn)換組(Transform Groups)的作用
          ---17.6 映射的普遍性
          ---17.7 NULL數(shù)據(jù)
          18.和連接器(Connectors)的關(guān)系
          ---18.1 系統(tǒng)約定
          ---18.2 映射連接器系統(tǒng)約定到JDBC接口
          ---18.3 用連接器的RAR文件格式將JDBC驅(qū)動(dòng)打包
          19. SQL ROWID
          ---19.1 RowId合理(Validity)期限
          ---19.2 取RowId值
          ---19.3 使用RowId
          20.新添的開發(fā)利器
          ---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 創(chuàng)建實(shí)現(xiàn)Query接口的實(shí)例
          -------20.2.1 創(chuàng)建一個(gè)Query接口
          -------20.2.2 Query接口的具體實(shí)現(xiàn)
          -------------20.2.2.1 Connection.createQueryObject和DataSource.createQueryObject方法
          -------------20.2.2.2 調(diào)用Query接口的方法
          -------------20.2.2.3 關(guān)閉Query對(duì)象
          ---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 參數(shù)化的sql注釋成員
          -------20.3.2 Update注釋
          -------------20.3.2.1 sql注釋成員
          -------------20.3.2.2 keys注釋成員
          -------------20.3.2.3 返回影響行數(shù)
          -------------20.3.2.4 參數(shù)化的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 數(shù)據(jù)集(DataSet)參數(shù)化類型
          -------20.4.1 創(chuàng)建數(shù)據(jù)集參數(shù)化類型實(shí)例
          -------20.4.2 操縱數(shù)據(jù)集
          -------------20.4.2.1 查看數(shù)據(jù)集
          -------------20.4.2.2 將數(shù)據(jù)集轉(zhuǎn)換成行集(RowSet)
          -------------20.4.2.3 創(chuàng)建當(dāng)前行的一個(gè)拷貝
          -------------20.4.2.4 插入行
          -------------20.4.2.5 刪除行
          -------------20.4.2.6 修改行
          -------------20.4.2.7 關(guān)閉數(shù)據(jù)集對(duì)象
          -------------20.4.2.8 同步數(shù)據(jù)集對(duì)象
          ---20.5 QueryObjectFactory類
          -------20.5.1 QueryObjectFactory的方法
          -------------20.5.1.1 createDefaultQueryObject方法
          -------------20.5.1.2 createQueryObject方法
          -------20.5.2 管理事務(wù)
          21.SQL2003和XML
          22.包裝器(Wrapper)
          附錄A.修正歷史
          附錄B.數(shù)據(jù)類型轉(zhuǎn)換表
          附錄C.標(biāo)量方法(Scalar Functions)
          ------C.1 數(shù)字方法
          ------C.2 字符串方法
          ------C.3 時(shí)間和日期方法
          ------C.4 系統(tǒng)方法
          ------C.5 轉(zhuǎn)換方法
          附錄D.JDBC注釋
          ------D.1 AutogeneratedKeys(自動(dòng)生成關(guān)鍵字)注釋
          ------D.2 Query(查詢)注釋
          ------D.3 Update(更新)注釋
          ------D.4 Column(列)注釋
          ------D.5 Table(表)注釋
          附錄E.相關(guān)文檔

          英文原文:
          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

          歡迎提出修改意見



          版權(quán)所有 羅明
          posted on 2005-09-23 18:43 羅明 閱讀(784) 評(píng)論(0)  編輯  收藏 所屬分類: Java
           
          主站蜘蛛池模板: 罗定市| 察哈| 鄢陵县| 庄浪县| 巫山县| 策勒县| 莱阳市| 临泽县| 潍坊市| 白银市| 贵溪市| 理塘县| 北宁市| 安远县| 太和县| 宜丰县| 吉首市| 浦北县| 衡山县| 衡阳县| 广德县| 汪清县| 阿巴嘎旗| 汽车| 潜江市| 大兴区| 博白县| 高淳县| 都兰县| 新野县| 黎城县| 衡东县| 南投县| 宁国市| 正宁县| 壶关县| 温州市| 武夷山市| 古蔺县| 顺义区| 富川|