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

欢迎提出修改意见



版权所有 罗明
posted on 2005-09-23 18:43 罗明 阅读(772) 评论(0)  编辑  收藏 所属分类: Java

只有注册用户登录后才能发表评论。


网站导航: