Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7dec4f80
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7dec4f80
编写于
6月 27, 2013
作者:
L
lancea
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8017471: Fix JDBC -Xdoclint public errors
Reviewed-by: darcy
上级
019c9349
变更
36
展开全部
隐藏空白更改
内联
并排
Showing
36 changed file
with
386 addition
and
360 deletion
+386
-360
src/share/classes/java/sql/Blob.java
src/share/classes/java/sql/Blob.java
+2
-2
src/share/classes/java/sql/CallableStatement.java
src/share/classes/java/sql/CallableStatement.java
+2
-0
src/share/classes/java/sql/Clob.java
src/share/classes/java/sql/Clob.java
+2
-2
src/share/classes/java/sql/DatabaseMetaData.java
src/share/classes/java/sql/DatabaseMetaData.java
+2
-2
src/share/classes/java/sql/Driver.java
src/share/classes/java/sql/Driver.java
+3
-2
src/share/classes/java/sql/DriverAction.java
src/share/classes/java/sql/DriverAction.java
+1
-1
src/share/classes/java/sql/NClob.java
src/share/classes/java/sql/NClob.java
+2
-2
src/share/classes/java/sql/ResultSet.java
src/share/classes/java/sql/ResultSet.java
+4
-2
src/share/classes/java/sql/SQLInput.java
src/share/classes/java/sql/SQLInput.java
+1
-0
src/share/classes/java/sql/SQLPermission.java
src/share/classes/java/sql/SQLPermission.java
+0
-1
src/share/classes/java/sql/SQLXML.java
src/share/classes/java/sql/SQLXML.java
+3
-1
src/share/classes/java/sql/Wrapper.java
src/share/classes/java/sql/Wrapper.java
+2
-1
src/share/classes/javax/sql/CommonDataSource.java
src/share/classes/javax/sql/CommonDataSource.java
+3
-2
src/share/classes/javax/sql/ConnectionPoolDataSource.java
src/share/classes/javax/sql/ConnectionPoolDataSource.java
+2
-2
src/share/classes/javax/sql/DataSource.java
src/share/classes/javax/sql/DataSource.java
+1
-1
src/share/classes/javax/sql/RowSet.java
src/share/classes/javax/sql/RowSet.java
+2
-2
src/share/classes/javax/sql/XADataSource.java
src/share/classes/javax/sql/XADataSource.java
+2
-2
src/share/classes/javax/sql/rowset/BaseRowSet.java
src/share/classes/javax/sql/rowset/BaseRowSet.java
+4
-4
src/share/classes/javax/sql/rowset/CachedRowSet.java
src/share/classes/javax/sql/rowset/CachedRowSet.java
+5
-6
src/share/classes/javax/sql/rowset/FilteredRowSet.java
src/share/classes/javax/sql/rowset/FilteredRowSet.java
+4
-4
src/share/classes/javax/sql/rowset/JdbcRowSet.java
src/share/classes/javax/sql/rowset/JdbcRowSet.java
+7
-5
src/share/classes/javax/sql/rowset/Joinable.java
src/share/classes/javax/sql/rowset/Joinable.java
+2
-2
src/share/classes/javax/sql/rowset/Predicate.java
src/share/classes/javax/sql/rowset/Predicate.java
+2
-2
src/share/classes/javax/sql/rowset/RowSetProvider.java
src/share/classes/javax/sql/rowset/RowSetProvider.java
+4
-2
src/share/classes/javax/sql/rowset/RowSetWarning.java
src/share/classes/javax/sql/rowset/RowSetWarning.java
+2
-2
src/share/classes/javax/sql/rowset/WebRowSet.java
src/share/classes/javax/sql/rowset/WebRowSet.java
+288
-282
src/share/classes/javax/sql/rowset/package.html
src/share/classes/javax/sql/rowset/package.html
+2
-2
src/share/classes/javax/sql/rowset/serial/SerialArray.java
src/share/classes/javax/sql/rowset/serial/SerialArray.java
+2
-2
src/share/classes/javax/sql/rowset/serial/SerialBlob.java
src/share/classes/javax/sql/rowset/serial/SerialBlob.java
+2
-2
src/share/classes/javax/sql/rowset/serial/SerialClob.java
src/share/classes/javax/sql/rowset/serial/SerialClob.java
+2
-2
src/share/classes/javax/sql/rowset/serial/SerialDatalink.java
...share/classes/javax/sql/rowset/serial/SerialDatalink.java
+3
-2
src/share/classes/javax/sql/rowset/serial/SerialJavaObject.java
...are/classes/javax/sql/rowset/serial/SerialJavaObject.java
+1
-1
src/share/classes/javax/sql/rowset/serial/SerialRef.java
src/share/classes/javax/sql/rowset/serial/SerialRef.java
+2
-2
src/share/classes/javax/sql/rowset/serial/SerialStruct.java
src/share/classes/javax/sql/rowset/serial/SerialStruct.java
+2
-2
src/share/classes/javax/sql/rowset/spi/SyncFactory.java
src/share/classes/javax/sql/rowset/spi/SyncFactory.java
+9
-5
src/share/classes/javax/sql/rowset/spi/SyncResolver.java
src/share/classes/javax/sql/rowset/spi/SyncResolver.java
+9
-6
未找到文件。
src/share/classes/java/sql/Blob.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 1998, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -29,7 +29,7 @@ import java.io.InputStream;
/**
* The representation (mapping) in
* the Java
<sup><font size=-2>TM</font></sup>
programming
* the Java
™
programming
* language of an SQL
* <code>BLOB</code> value. An SQL <code>BLOB</code> is a built-in type
* that stores a Binary Large Object as a column value in a row of
...
...
src/share/classes/java/sql/CallableStatement.java
浏览文件 @
7dec4f80
...
...
@@ -2445,6 +2445,7 @@ public interface CallableStatement extends PreparedStatement {
* @param parameterIndex the first parameter is 1, the second is 2, and so on
* @param type Class representing the Java data type to convert the
* designated parameter to.
* @param <T> the type of the class modeled by this Class object
* @return an instance of {@code type} holding the OUT parameter value
* @throws SQLException if conversion is not supported, type is null or
* another error occurs. The getCause() method of the
...
...
@@ -2473,6 +2474,7 @@ public interface CallableStatement extends PreparedStatement {
* @param parameterName the name of the parameter
* @param type Class representing the Java data type to convert
* the designated parameter to.
* @param <T> the type of the class modeled by this Class object
* @return an instance of {@code type} holding the OUT parameter
* value
* @throws SQLException if conversion is not supported, type is null or
...
...
src/share/classes/java/sql/Clob.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 1998, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -28,7 +28,7 @@ package java.sql;
import
java.io.Reader
;
/**
* The mapping in the Java
<sup><font size=-2>TM</font></sup>
programming language
* The mapping in the Java
™
programming language
* for the SQL <code>CLOB</code> type.
* An SQL <code>CLOB</code> is a built-in type
* that stores a Character Large Object as a column value in a row of
...
...
src/share/classes/java/sql/DatabaseMetaData.java
浏览文件 @
7dec4f80
...
...
@@ -31,7 +31,7 @@ package java.sql;
* <P>
* This interface is implemented by driver vendors to let users know the capabilities
* of a Database Management System (DBMS) in combination with
* the driver based on JDBC
<sup><font size=-2>TM</font></sup>
technology
* the driver based on JDBC
™
technology
* ("JDBC driver") that is used with it. Different relational DBMSs often support
* different features, implement features in different ways, and use different
* data types. In addition, a driver may implement a feature on top of what the
...
...
@@ -3074,7 +3074,7 @@ public interface DatabaseMetaData extends Wrapper {
*
* @param holdability one of the following constants:
* <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
* <code>ResultSet.CLOSE_CURSORS_AT_COMMIT<code>
* <code>ResultSet.CLOSE_CURSORS_AT_COMMIT<
/
code>
* @return <code>true</code> if so; <code>false</code> otherwise
* @exception SQLException if a database access error occurs
* @see Connection
...
...
src/share/classes/java/sql/Driver.java
浏览文件 @
7dec4f80
...
...
@@ -144,7 +144,7 @@ public interface Driver {
/**
* Reports whether this driver is a genuine JDBC
* Compliant
<sup><font size=-2>TM</font></sup>
driver.
* Compliant
™
driver.
* A driver may only report <code>true</code> here if it passes the JDBC
* compliance tests; otherwise it is required to return <code>false</code>.
* <P>
...
...
@@ -173,7 +173,8 @@ public interface Driver {
* In the worst case, this may be the root Logger.
*
* @return the parent Logger for this driver
* @throws SQLFeatureNotSupportedException if the driver does not use <code>java.util.logging<code>.
* @throws SQLFeatureNotSupportedException if the driver does not use
* {@code java.util.logging}.
* @since 1.7
*/
public
Logger
getParentLogger
()
throws
SQLFeatureNotSupportedException
;
...
...
src/share/classes/java/sql/DriverAction.java
浏览文件 @
7dec4f80
...
...
@@ -33,7 +33,7 @@ package java.sql;
* directly by applications. A JDBC Driver may choose
* to create its {@code DriverAction} implementation in a private class
* to avoid it being called directly.
* <
o
>
* <
p
>
* The JDBC driver's static initialization block must call
* {@linkplain DriverManager#registerDriver(java.sql.Driver, java.sql.DriverAction) } in order
* to inform {@code DriverManager} which {@code DriverAction} implementation to
...
...
src/share/classes/java/sql/NClob.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -28,7 +28,7 @@ package java.sql;
import
java.sql.Clob
;
/**
* The mapping in the Java
<sup><font size=-2>TM</font></sup>
programming language
* The mapping in the Java
™
programming language
* for the SQL <code>NCLOB</code> type.
* An SQL <code>NCLOB</code> is a built-in type
* that stores a Character Large Object using the National Character Set
...
...
src/share/classes/java/sql/ResultSet.java
浏览文件 @
7dec4f80
...
...
@@ -90,7 +90,7 @@ import java.io.InputStream;
* the intended columns, which can be assured with the SQL <i>AS</i> clause.
* <P>
* A set of updater methods were added to this interface
* in the JDBC 2.0 API (Java
<sup><font size=-2>TM</font></sup>
2 SDK,
* in the JDBC 2.0 API (Java
™
2 SDK,
* Standard Edition, version 1.2). The comments regarding parameters
* to the getter methods also apply to parameters to the
* updater methods.
...
...
@@ -4101,7 +4101,7 @@ public interface ResultSet extends Wrapper, AutoCloseable {
* Appendix B, Table B-3 and conversion of appropriate user defined SQL
* types to a Java type which implements {@code SQLData}, or {@code Struct}.
* Additional conversions may be supported and are vendor defined.
*
*
@param <T> the type of the class modeled by this Class object
* @param columnIndex the first column is 1, the second is 2, ...
* @param type Class representing the Java data type to convert the designated
* column to.
...
...
@@ -4135,6 +4135,7 @@ public interface ResultSet extends Wrapper, AutoCloseable {
* of the column
* @param type Class representing the Java data type to convert the designated
* column to.
* @param <T> the type of the class modeled by this Class object
* @return an instance of {@code type} holding the column value
* @throws SQLException if conversion is not supported, type is null or
* another error occurs. The getCause() method of the
...
...
@@ -4208,6 +4209,7 @@ public interface ResultSet extends Wrapper, AutoCloseable {
* @param columnLabel the label for the column specified with the SQL AS
* clause. If the SQL AS clause was not specified, then the label is
* the name of the column
* @param x the new column value
* @param targetSqlType the SQL type to be sent to the database
* @param scaleOrLength for an object of {@code java.math.BigDecimal} ,
* this is the number of digits after the decimal point. For
...
...
src/share/classes/java/sql/SQLInput.java
浏览文件 @
7dec4f80
...
...
@@ -444,6 +444,7 @@ public interface SQLInput {
*<p>
* The default implementation will throw {@code SQLFeatureNotSupportedException}
*
* @param<T> the type of the class modeled by this Class object
* @param type Class representing the Java data type to convert the attribute to.
* @return the attribute at the head of the stream as an {@code Object} in the
* Java programming language;{@code null} if the attribute is SQL {@code NULL}
...
...
src/share/classes/java/sql/SQLPermission.java
浏览文件 @
7dec4f80
...
...
@@ -103,7 +103,6 @@ import java.security.*;
* <td>Permits an application to remove a JDBC driver from the list of
* registered Drivers and release its resources.</td>
* </tr>
* </tr>
* </table>
*<p>
* @since 1.3
...
...
src/share/classes/java/sql/SQLXML.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -360,6 +360,7 @@ public interface SQLXML
* xmlReader.parse(saxSource.getInputSource());
* </pre>
*
* @param <T> the type of the class modeled by this Class object
* @param sourceClass The class of the source, or null.
* If the class is null, a vendor specifc Source implementation will be returned.
* The following classes are supported at a minimum:
...
...
@@ -401,6 +402,7 @@ public interface SQLXML
* contentHandler.endDocument();
* </pre>
*
* @param <T> the type of the class modeled by this Class object
* @param resultClass The class of the result, or null.
* If resultClass is null, a vendor specific Result implementation will be returned.
* The following classes are supported at a minimum:
...
...
src/share/classes/java/sql/Wrapper.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2005, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,6 +53,7 @@ public interface Wrapper {
* or a proxy for that result. If the receiver is not a
* wrapper and does not implement the interface, then an <code>SQLException</code> is thrown.
*
* @param <T> the type of the class modeled by this Class object
* @param iface A Class defining an interface that the result must implement.
* @return an object that implements the interface. May be a proxy for the actual implementing object.
* @throws java.sql.SQLException If no object found that implements the interface
...
...
src/share/classes/javax/sql/CommonDataSource.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2005, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -122,7 +122,8 @@ public interface CommonDataSource {
* In the worst case, this may be the root Logger.
*
* @return the parent Logger for this data source
* @throws SQLFeatureNotSupportedException if the data source does not use <code>java.util.logging<code>.
* @throws SQLFeatureNotSupportedException if the data source does not use
* {@code java.util.logging}
* @since 1.7
*/
public
Logger
getParentLogger
()
throws
SQLFeatureNotSupportedException
;
...
...
src/share/classes/javax/sql/ConnectionPoolDataSource.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,7 +32,7 @@ import java.sql.SQLException;
* A factory for <code>PooledConnection</code>
* objects. An object that implements this interface will typically be
* registered with a naming service that is based on the
* Java
<sup><font size=-2>TM</font></sup>
Naming and Directory Interface
* Java
™
Naming and Directory Interface
* (JNDI).
*
* @since 1.4
...
...
src/share/classes/javax/sql/DataSource.java
浏览文件 @
7dec4f80
...
...
@@ -36,7 +36,7 @@ import java.sql.Wrapper;
* is the preferred means of getting a connection. An object that implements
* the {@code DataSource} interface will typically be
* registered with a naming service based on the
* Java
<sup><font size=-2>TM</font></sup>
Naming and Directory (JNDI) API.
* Java
™
Naming and Directory (JNDI) API.
* <P>
* The {@code DataSource} interface is implemented by a driver vendor.
* There are three types of implementations:
...
...
src/share/classes/javax/sql/RowSet.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2000, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,7 +32,7 @@ import java.util.*;
/**
* The interface that adds support to the JDBC API for the
* JavaBeans
<sup><font size=-2>TM</font></sup>
component model.
* JavaBeans
™
component model.
* A rowset, which can be used as a JavaBeans component in
* a visual Bean development environment, can be created and
* configured at design time and executed at run time.
...
...
src/share/classes/javax/sql/XADataSource.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2000, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -31,7 +31,7 @@ import java.sql.*;
* A factory for {@code XAConnection} objects that is used internally.
* An object that implements the {@code XADataSource} interface is
* typically registered with a naming service that uses the
* Java Naming and Directory Interface
<sup><font size=-3>TM</font></sup>
* Java Naming and Directory Interface
™
* (JNDI).
* <p>
* An implementation of {@code XADataSource} must include a public no-arg
...
...
src/share/classes/javax/sql/rowset/BaseRowSet.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -37,7 +37,7 @@ import javax.sql.rowset.serial.*;
/**
* An abstract class providing a <code>RowSet</code> object with its basic functionality.
* The basic functions include having properties and sending event notifications,
* which all JavaBeans
<sup><font size=-2>TM</font></sup>
components must implement.
* which all JavaBeans
™
components must implement.
* <P>
* <h3>1.0 Overview</h3>
* The <code>BaseRowSet</code> class provides the core functionality
...
...
@@ -93,7 +93,7 @@ import javax.sql.rowset.serial.*;
* NOTE: In order to use a <code>DataSource</code> object for making a
* connection, the <code>DataSource</code> object must have been registered
* with a naming service that uses the Java Naming and Directory
* Interface
<sup><font size=-2>TM</font></sup>
(JNDI) API. This registration
* Interface
™
(JNDI) API. This registration
* is usually done by a person acting in the capacity of a system administrator.
* <P>
* <h3>3.0 Setting the Command and Its Parameters</h3>
...
...
@@ -106,7 +106,7 @@ import javax.sql.rowset.serial.*;
* to <code>null</code> if required.
* <P>
* The following code fragment illustrates how the
* <code>CachedRowSet</code>
<sup><font size=-2>TM</font></sup>
* <code>CachedRowSet</code>
™
* object <code>crs</code> might have its command property set. Note that if a
* tool is used to set properties, this is the code that the tool would use.
* <PRE>{@code
...
...
src/share/classes/javax/sql/rowset/CachedRowSet.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -46,7 +46,7 @@ import javax.sql.rowset.spi.*;
* A <code>CachedRowSet</code> object is a container for rows of data
* that caches its rows in memory, which makes it possible to operate without always being
* connected to its data source. Further, it is a
* JavaBeans
<sup><font size=-2>TM</font></sup>
component and is scrollable,
* JavaBeans
™
component and is scrollable,
* updatable, and serializable. A <code>CachedRowSet</code> object typically
* contains rows from a result set, but it can also contain rows from any file
* with a tabular format, such as a spread sheet. The reference implementation
...
...
@@ -410,7 +410,7 @@ import javax.sql.rowset.spi.*;
* NOTE: In order to use a <code>DataSource</code> object for making a
* connection, the <code>DataSource</code> object must have been registered
* with a naming service that uses the Java Naming and Directory
* Interface
<sup><font size=-2>TM</font></sup>
(JNDI) API. This registration
* Interface
™
(JNDI) API. This registration
* is usually done by a person acting in the capacity of a system
* administrator.
* <P>
...
...
@@ -734,7 +734,6 @@ public interface CachedRowSet extends RowSet, Joinable {
* source. Otherwise, the application <b>must</b> explicity call the
* <code>commit()</code> or <code>rollback()</code> methods as appropriate.
*
* @throws SQLException if the cursor is on the insert row
* @throws SyncProviderException if the underlying
* synchronization provider's writer fails to write the updates
* back to the data source
...
...
@@ -805,7 +804,6 @@ public interface CachedRowSet extends RowSet, Joinable {
* <code>commit</code> or <code>rollback</code> methods as appropriate.
*
* @param con a standard JDBC <code>Connection</code> object
* @throws SQLException if the cursor is on the insert row
* @throws SyncProviderException if the underlying
* synchronization provider's writer fails to write the updates
* back to the data source
...
...
@@ -1371,7 +1369,7 @@ public interface CachedRowSet extends RowSet, Joinable {
* Applications can form a <code>WebRowSet</code> object from the <code>CachedRowSet</code>
* object returned by this method in order
* to export the <code>RowSet</code> schema definition to XML for future use.
*
*
@return An empty copy of this {@code CachedRowSet} object
* @throws SQLException if an error occurs in cloning the structure of this
* <code>CachedRowSet</code> object
* @see #createShared
...
...
@@ -1543,6 +1541,7 @@ public interface CachedRowSet extends RowSet, Joinable {
* @param numRows when populating, the number of rows interval on which the
* <code>CachedRowSet</code> populated should fire; the default value
* is zero; cannot be less than <code>fetchSize</code> or zero
* @throws SQLException {@code numRows < 0 or numRows < getFetchSize() }
*/
public
void
rowSetPopulated
(
RowSetEvent
event
,
int
numRows
)
throws
SQLException
;
...
...
src/share/classes/javax/sql/rowset/FilteredRowSet.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -51,7 +51,7 @@ import java.math.*;
* <p>
* A JDBC <code>FilteredRowSet</code> standard implementation implements the
* <code>RowSet</code> interfaces and extends the
* <code>CachedRowSet</code>
<sup><font size=-2>TM</font></sup>
class. The
* <code>CachedRowSet</code>
™
class. The
* <code>CachedRowSet</code> class provides a set of protected cursor manipulation
* methods, which a <code>FilteredRowSet</code> implementation can override
* to supply filtering support.
...
...
@@ -69,8 +69,8 @@ import java.math.*;
* class JavaDoc), a <code>FilteredRowSet</code> could then be used as described
* below.
* <P>
* <code>
* <pre>
* {@code
* FilteredRowSet frs = new FilteredRowSetImpl();
* frs.populate(rs);
*
...
...
@@ -78,8 +78,8 @@ import java.math.*;
* frs.setFilter(name);
*
* frs.next() // only names from "Alpha" to "Bravo" will be returned
* }
* </pre>
* </code>
* In the example above, we initialize a <code>Range</code> object which
* implements the <code>Predicate</code> interface. This object expresses
* the following constraints: All rows outputted or modified from this
...
...
src/share/classes/javax/sql/rowset/JdbcRowSet.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -38,7 +38,7 @@ import java.io.*;
*
* <h3>1.0 Overview</h3>
* A wrapper around a <code>ResultSet</code> object that makes it possible
* to use the result set as a JavaBeans
<sup><font size=-2>TM</font></sup>
* to use the result set as a JavaBeans
™
* component. Thus, a <code>JdbcRowSet</code> object can be one of the Beans that
* a tool makes available for composing an application. Because
* a <code>JdbcRowSet</code> is a connected rowset, that is, it continually
...
...
@@ -113,7 +113,7 @@ import java.io.*;
* <P>
* The implementation of the <code>RowSet</code> method <code>execute</code> in the
* <code>JdbcRowSet</code> reference implementation differs from that in the
* <code>CachedRowSet</code>
<sup><font size=-2>TM</font></sup>
* <code>CachedRowSet</code>
™
* reference implementation to account for the different
* requirements of connected and disconnected <code>RowSet</code> objects.
* <p>
...
...
@@ -238,6 +238,7 @@ public interface JdbcRowSet extends RowSet, Joinable {
* call to either the method commit or the method rollback. By default,
* new connections are in auto-commit mode.
*
* @return {@code true} if auto-commit is enabled; {@code false} otherwise
* @throws SQLException if a database access error occurs
* @see java.sql.Connection#getAutoCommit()
*/
...
...
@@ -251,7 +252,8 @@ public interface JdbcRowSet extends RowSet, Joinable {
* to allow an application to set the <code>JdbcRowSet</code> transaction behavior.
* <p>
* Sets the current auto-commit mode for this <code>Connection</code> object.
*
* @param autoCommit {@code true} to enable auto-commit; {@code false} to
* disable auto-commit
* @throws SQLException if a database access error occurs
* @see java.sql.Connection#setAutoCommit(boolean)
*/
...
...
@@ -277,7 +279,7 @@ public interface JdbcRowSet extends RowSet, Joinable {
* Undoes all changes made in the current transaction to the last set savepoint
* and releases any database locks currently held by this <code>Connection</code>
* object. This method should be used only when auto-commit mode has been disabled.
*
*
@param s The {@code Savepoint} to rollback to
* @throws SQLException if a database access error occurs or this <code>Connection</code>
* object within this <code>JdbcRowSet</code> is in auto-commit mode.
* @see #rollback
...
...
src/share/classes/javax/sql/rowset/Joinable.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -137,7 +137,7 @@ public interface Joinable {
* object. A <code>JoinRowSet</code> object can now add this <code>RowSet</code>
* object based on the match column.
* <p>
* Sub-interfaces such as the <code>CachedRowSet</code>
<sup><font size=-2>TM</font></sup>
* Sub-interfaces such as the <code>CachedRowSet</code>
™
* interface define the method <code>CachedRowSet.setKeyColumns</code>, which allows
* primary key semantics to be enforced on specific columns.
* Implementations of the <code>setMatchColumn(int columnIdx)</code> method
...
...
src/share/classes/javax/sql/rowset/Predicate.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -111,7 +111,7 @@ public interface Predicate {
* cursor moving from row to the next. In addition, if this internal method
* moves the cursor onto a row that has been deleted, the internal method will
* continue to ove the cursor until a valid row is found.
*
*
@param rs The {@code RowSet} to be evaluated
* @return <code>true</code> if there are more rows in the filter;
* <code>false</code> otherwise
*/
...
...
src/share/classes/javax/sql/rowset/RowSetProvider.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2010, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -71,7 +71,9 @@ public class RowSetProvider {
debug
=
val
!=
null
&&
!
"false"
.
equals
(
val
);
}
/**
* RowSetProvider constructor
*/
protected
RowSetProvider
()
{
}
...
...
src/share/classes/javax/sql/rowset/RowSetWarning.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -35,7 +35,7 @@ import java.sql.SQLException;
* This class complements the <code>SQLWarning</code> class.
* <P>
* Rowset warnings may be retrieved from <code>JdbcRowSet</code>,
* <code>CachedRowSet</code>
<sup><font size=-2>TM</font></sup>
,
* <code>CachedRowSet</code>
™
,
* <code>WebRowSet</code>, <code>FilteredRowSet</code>, or <code>JoinRowSet</code>
* implementations. To retrieve the first warning reported on any
* <code>RowSet</code>
...
...
src/share/classes/javax/sql/rowset/WebRowSet.java
浏览文件 @
7dec4f80
此差异已折叠。
点击以展开。
src/share/classes/javax/sql/rowset/package.html
浏览文件 @
7dec4f80
...
...
@@ -67,7 +67,7 @@ interfaces.
<ul>
<li><a
href=
"JdbcRowSet.html"
><b><code>
JdbcRowSet
</code></b></a>
- A wrapper around
a
<tt>
ResultSet
</tt>
object that makes it possible to use the result set as a
JavaBeans
<sup><font
size=
-2
>
TM
</font></sup>
component. Thus,
JavaBeans
™
component. Thus,
a
<tt>
JdbcRowSet
</tt>
object can be a Bean that any tool
makes available for assembling an application as part of a component based
architecture . A
<tt>
JdbcRowSet
</tt>
object is a connected
<code>
RowSet
</code>
...
...
@@ -79,7 +79,7 @@ data structure as defined in the JDBC 3.0 specification.
<p>
<li><a
href=
"CachedRowSet.html"
>
<b><code>
CachedRowSet
</code>
™
</b></a>
- A
<tt>
CachedRowSet
</tt>
object is a JavaBeans
<sup><font
size=
-2
>
TM
</font></sup>
- A
<tt>
CachedRowSet
</tt>
object is a JavaBeans
™
component that is scrollable, updatable, serializable, and generally disconnected from
the source of its data. A
<tt>
CachedRowSet
</tt>
object
typically contains rows from a result set, but it can also contain rows from any
...
...
src/share/classes/javax/sql/rowset/serial/SerialArray.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -50,7 +50,7 @@ import java.util.Arrays;
* if necessary. At this time, logical pointers to the data in the data source,
* such as locators, are not currently supported.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* A SerialArray is not safe for use by multiple concurrent threads. If a
* SerialArray is to be used by more than one thread then access to the
...
...
src/share/classes/javax/sql/rowset/serial/SerialBlob.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -51,7 +51,7 @@ import java.util.Arrays;
* <code>Blob</code> object within a <code>SerialBlob</code> object
* and to update or truncate a <code>Blob</code> object.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* <p> A SerialBlob is not safe for use by multiple concurrent threads. If a
* SerialBlob is to be used by more than one thread then access to the SerialBlob
...
...
src/share/classes/javax/sql/rowset/serial/SerialClob.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -44,7 +44,7 @@ import java.util.Arrays;
* from a <code>SerialClob</code> object or to locate the start of
* a pattern of characters.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* <p> A SerialClob is not safe for use by multiple concurrent threads. If a
* SerialClob is to be used by more than one thread then access to the SerialClob
...
...
src/share/classes/javax/sql/rowset/serial/SerialDatalink.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -43,7 +43,7 @@ import java.net.URL;
* java.net.URL url = rowset.getURL(1);
* </pre>
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* A SerialDatalink is not safe for use by multiple concurrent threads. If a
* SerialDatalink is to be used by more than one thread then access to the
...
...
@@ -77,6 +77,7 @@ public class SerialDatalink implements Serializable, Cloneable {
* Constructs a new <code>SerialDatalink</code> object from the given
* <code>java.net.URL</code> object.
* <P>
* @param url the {@code URL} to create the {@code SerialDataLink} from
* @throws SerialException if url parameter is a null
*/
public
SerialDatalink
(
URL
url
)
throws
SerialException
{
...
...
src/share/classes/javax/sql/rowset/serial/SerialJavaObject.java
浏览文件 @
7dec4f80
...
...
@@ -47,7 +47,7 @@ import sun.reflect.misc.ReflectUtil;
* Static or transient fields cannot be serialized; an attempt to serialize
* them will result in a <code>SerialException</code> object being thrown.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* A SerialJavaObject is not safe for use by multiple concurrent threads. If a
* SerialJavaObject is to be used by more than one thread then access to the
...
...
src/share/classes/javax/sql/rowset/serial/SerialRef.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -37,7 +37,7 @@ import java.util.*;
* creating a <code>SerialRef</code> instance from a <code>Ref</code>
* object and provides methods for getting and setting the <code>Ref</code> object.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* A SerialRef is not safe for use by multiple concurrent threads. If a
* SerialRef is to be used by more than one thread then access to the SerialRef
...
...
src/share/classes/javax/sql/rowset/serial/SerialStruct.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -51,7 +51,7 @@ import javax.sql.rowset.*;
* the SQL type name of the SQL structured type in the database, and methods
* for retrieving its attribute values.
*
* <h
4> Thread safety </h4
>
* <h
3> Thread safety </h3
>
*
* A SerialStruct is not safe for use by multiple concurrent threads. If a
* SerialStruct is to be used by more than one thread then access to the
...
...
src/share/classes/javax/sql/rowset/spi/SyncFactory.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -260,13 +260,14 @@ public class SyncFactory {
* <p>
* Synchronization providers bound to a JNDI context can be
* registered by binding a SyncProvider instance to a JNDI namespace.
*
<ul>
*
* <pre>
* {@code
* SyncProvider p = new MySyncProvider();
* InitialContext ic = new InitialContext();
* ic.bind ("jdbc/rowset/MySyncProvider", p);
* </pre>
*
</ul>
*
}
</pre>
*
* Furthermore, an initial JNDI context should be set with the
* <code>SyncFactory</code> using the <code>setJNDIContext</code> method.
* The <code>SyncFactory</code> leverages this context to search for
...
...
@@ -564,6 +565,8 @@ public class SyncFactory {
*
* @return Enumeration A enumeration of available synchronization
* providers that are registered with this Factory
* @throws SyncFactoryException If an error occurs obtaining the registered
* providers
*/
public
static
Enumeration
<
SyncProvider
>
getRegisteredProviders
()
throws
SyncFactoryException
{
...
...
@@ -648,7 +651,8 @@ public class SyncFactory {
/**
* Returns the logging object for applications to retrieve
* synchronization events posted by SyncProvider implementations.
*
* @return The {@code Logger} that has been specified for use by
* {@code SyncProvider} implementations
* @throws SyncFactoryException if no logging object has been set.
*/
public
static
Logger
getLogger
()
throws
SyncFactoryException
{
...
...
src/share/classes/javax/sql/rowset/spi/SyncResolver.java
浏览文件 @
7dec4f80
/*
* Copyright (c) 2003, 20
04
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -81,10 +81,13 @@ import java.sql.SQLException;
* <code>SyncProviderException</code> method <code>getSyncResolver</code> to get
* the <code>SyncResolver</code> object <i>resolver</i>.
* <PRE>
* {@code
* } catch (SyncProviderException spe) {
* SyncResolver resolver = spe.getSyncResolver();
* ...
* }
*
* }
* </PRE>
* <P>
* With <i>resolver</i> in hand, an application can use it to get the information
...
...
@@ -97,7 +100,7 @@ import java.sql.SQLException;
* The following kinds of information can be obtained from a <code>SyncResolver</code>
* object:
* <P>
* <
LI>What operation was being attempted when a conflict occurred<BR
>
* <
h3>What operation was being attempted when a conflict occurred</h3
>
* The <code>SyncProvider</code> interface defines four constants
* describing states that may occur. Three
* constants describe the type of operation (update, delete, or insert) that a
...
...
@@ -106,10 +109,10 @@ import java.sql.SQLException;
* These constants are the possible return values when a <code>SyncResolver</code> object
* calls the method <code>getStatus</code>.
* <PRE>
*
int operation = resolver.getStatus();
*
{@code int operation = resolver.getStatus(); }
* </PRE>
* <P>
* <
LI>The value in the data source that caused a conflict<BR
>
* <
h3>The value in the data source that caused a conflict</h3
>
* A conflict exists when a value that a <code>RowSet</code> object has changed
* and is attempting to write to the data source
* has also been changed in the data source since the last synchronization. An
...
...
@@ -122,7 +125,6 @@ import java.sql.SQLException;
* </PRE>
* Note that the column in <i>resolver</i> can be designated by the column number,
* as is done in the preceding line of code, or by the column name.
* </UL>
* <P>
* With the information retrieved from the methods <code>getStatus</code> and
* <code>getConflictValue</code>, the application may make a determination as to
...
...
@@ -193,7 +195,8 @@ import java.sql.SQLException;
* code fragment, the value in <i>crs</i> is the one set as the resolved value, which means
* that it will be used to overwrite the conflict value in the data source.
*
* <PRE>{@code
* <PRE>
* {@code
* try {
*
* crs.acceptChanges(con);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录