author | coleenp |
Wed, 28 Jun 2017 19:12:58 -0400 | |
changeset 46589 | f1c04490ded1 |
parent 45137 | b6d407860c47 |
child 45885 | 562fed91cd84 |
permissions | -rw-r--r-- |
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
1 |
<!doctype html> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
2 |
<html lang="en"> |
2 | 3 |
<head> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
4 |
|
2 | 5 |
<meta http-equiv="Content-Type" |
6 |
content="text/html; charset=iso-8859-1"> |
|
7 |
<!-- |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
8 |
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 | 9 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
10 |
||
11 |
This code is free software; you can redistribute it and/or modify it |
|
12 |
under the terms of the GNU General Public License version 2 only, as |
|
5506 | 13 |
published by the Free Software Foundation. Oracle designates this |
2 | 14 |
particular file as subject to the "Classpath" exception as provided |
5506 | 15 |
by Oracle in the LICENSE file that accompanied this code. |
2 | 16 |
|
17 |
This code is distributed in the hope that it will be useful, but WITHOUT |
|
18 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
19 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
20 |
version 2 for more details (a copy is included in the LICENSE file that |
|
21 |
accompanied this code). |
|
22 |
||
23 |
You should have received a copy of the GNU General Public License version |
|
24 |
2 along with this work; if not, write to the Free Software Foundation, |
|
25 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
26 |
||
5551
327690766109
6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents:
5506
diff
changeset
|
27 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
327690766109
6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents:
5506
diff
changeset
|
28 |
or visit www.oracle.com if you need additional information or have any |
327690766109
6956202: Fix a few missed rebranding issues, please contact lines etc.
ohair
parents:
5506
diff
changeset
|
29 |
questions. |
2 | 30 |
|
31 |
--> |
|
32 |
<title>javax.sql.rowset Package</title> |
|
33 |
</head> |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
34 |
<body> |
2 | 35 |
|
36 |
<!-- Description clause --> |
|
37 |
Standard interfaces and base classes for JDBC <code>RowSet</code> |
|
38 |
implementations. This package contains interfaces and classes |
|
39 |
that a standard <code>RowSet</code> implementation either implements or extends. |
|
40 |
||
41 |
||
42 |
<h2>Table of Contents</h2> |
|
43 |
<ul> |
|
44 |
<li><a href="#pkgspec">1.0 Package Specification</a> |
|
45 |
<li><a href="#stdrowset">2.0 Standard RowSet Definitions</a> |
|
21278 | 46 |
<li><a href="#impl">3.0 Implementer's Guide</a> |
2 | 47 |
<li><a href="#relspec">4.0 Related Specifications</a> |
48 |
<li><a href="#reldocs">5.0 Related Documentation</a> |
|
49 |
</ul> |
|
50 |
||
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
51 |
<h3><a id="pkgspec">1.0 Package Specification</a></h3> |
2 | 52 |
This package specifies five standard JDBC <code>RowSet</code> interfaces. |
53 |
All five extend the |
|
54 |
<a href="../RowSet.html">RowSet</a> interface described in the JDBC 3.0 |
|
55 |
specification. It is anticipated that additional definitions |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
56 |
of more specialized JDBC <code>RowSet</code> types will emerge as this technology |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
57 |
matures. Future definitions <i>should</i> be specified as subinterfaces using |
2 | 58 |
inheritance similar to the way it is used in this specification. |
59 |
<p> |
|
60 |
<i>Note:</i> The interface definitions provided in this package form the basis for |
|
61 |
all compliant JDBC <code>RowSet</code> implementations. Vendors and more advanced |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
62 |
developers who intend to provide their own compliant <code>RowSet</code> implementations |
2 | 63 |
should pay particular attention to the assertions detailed in specification |
64 |
interfaces. |
|
65 |
||
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
66 |
<h3><a id="stdrowset">2.0 Standard RowSet Definitions</a></h3> |
2 | 67 |
<ul> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
68 |
<li><a href="JdbcRowSet.html"><b><code>JdbcRowSet</code></b></a> - A wrapper around |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
69 |
a <code>ResultSet</code> object that makes it possible to use the result set as a |
18564 | 70 |
JavaBeans™ component. Thus, |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
71 |
a <code>JdbcRowSet</code> object can be a Bean that any tool |
2 | 72 |
makes available for assembling an application as part of a component based |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
73 |
architecture. A <code>JdbcRowSet</code> object is a connected <code>RowSet</code> |
2 | 74 |
object, that is, it |
75 |
<b>must</b> continually maintain its connection to its data source using a JDBC |
|
76 |
technology-enabled driver ("JDBC driver"). In addition, a <code>JdbcRowSet</code> |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
77 |
object provides a fully updatable and scrollable tabular |
2 | 78 |
data structure as defined in the JDBC 3.0 specification. |
24197 | 79 |
|
2 | 80 |
<li><a href="CachedRowSet.html"> |
6529 | 81 |
<b><code>CachedRowSet</code>™</b></a> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
82 |
- A <code>CachedRowSet</code> object is a JavaBeans™ |
2 | 83 |
component that is scrollable, updatable, serializable, and generally disconnected from |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
84 |
the source of its data. A <code>CachedRowSet</code> object |
2 | 85 |
typically contains rows from a result set, but it can also contain rows from any |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
86 |
file with a tabular format, such as a spreadsheet. <code>CachedRowSet</code> implementations |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
87 |
<b>must</b> use the <code>SyncFactory</code> to manage and obtain pluggable |
2 | 88 |
<code>SyncProvider</code> objects to provide synchronization between the |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
89 |
disconnected <code>RowSet</code> object and the originating data source. |
2 | 90 |
Typically a <code>SyncProvider</code> implementation relies upon a JDBC |
91 |
driver to obtain connectivity to a particular data source. |
|
92 |
Further details on this mechanism are discussed in the <a |
|
93 |
href="spi/package-summary.html"><code>javax.sql.rowset.spi</code></a> package |
|
94 |
specification. |
|
24197 | 95 |
|
2 | 96 |
<li><a href="WebRowSet.html"><b><code>WebRowSet</code></b></a> - A |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
97 |
<code>WebRowSet</code> object is an extension of <code>CachedRowSet</code> |
2 | 98 |
that can read and write a <code>RowSet</code> object in a well formed XML format. |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
99 |
This class calls an <a href="spi/XmlReader.html"><code>XmlReader</code></a> object |
2 | 100 |
(an extension of the <a href="../RowSetReader.html"><code>RowSetReader</code></a> |
101 |
interface) to read a rowset in XML format. It calls an |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
102 |
<a href="spi/XmlWriter.html"><code>XmlWriter</code></a> object (an extension of the |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
103 |
<a href="../RowSetWriter.html"><code>RowSetWriter</code></a> interface) |
2 | 104 |
to write a rowset in XML format. The reader and writer required by |
105 |
<code>WebRowSet</code> objects are provided by the |
|
106 |
<code>SyncFactory</code> in the form of <code>SyncProvider</code> |
|
107 |
implementations. In order to ensure well formed XML usage, a standard generic XML |
|
108 |
Schema is defined and published at |
|
109 |
<a href="http://java.sun.com/xml/ns/jdbc/webrowset.xsd"> |
|
110 |
<code>http://java.sun.com/xml/ns/jdbc/webrowset.xsd</code></a>. |
|
24197 | 111 |
|
2 | 112 |
<li><a href="FilteredRowSet.html"><b><code>FilteredRowSet</code></b></a> - A |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
113 |
<code>FilteredRowSet</code> object provides filtering functionality in a programmatic |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
114 |
and extensible way. There are many instances when a <code>RowSet</code> <code>object</code> |
2 | 115 |
has a need to provide filtering in its contents without sacrificing the disconnected |
116 |
environment, thus saving the expense of having to create a connection to the data source. |
|
117 |
Solutions to this need vary from providing heavyweight full scale |
|
118 |
SQL query abilities, to portable components, to more lightweight |
|
119 |
approaches. A <code>FilteredRowSet</code> object consumes |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
120 |
an implementation of the <a href="Predicate.html"><code>Predicate</code></a> |
2 | 121 |
interface, which <b>may</b> define a filter at run time. In turn, a |
122 |
<code>FilteredRowSet</code> object is tasked with enforcing the set filter for both |
|
123 |
inbound and outbound read and write operations. That is, all filters can be |
|
124 |
considered as bi-directional. No standard filters are defined; |
|
125 |
however, sufficient mechanics are specified to permit any required filter to be |
|
126 |
implemented. |
|
24197 | 127 |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
128 |
<li><a href="JoinRowSet.html"><b><code>JoinRowSet</code></b></a> - The <code>JoinRowSet</code> |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
129 |
interface describes a mechanism by which relationships can be established between |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
130 |
two or more standard <code>RowSet</code> implementations. Any number of <code>RowSet</code> |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
131 |
objects can be added to a <code>JoinRowSet</code> object provided the <code>RowSet</code>objects |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
132 |
can be related in a SQL <code>JOIN</code> like fashion. By definition, the SQL <code>JOIN</code> |
2 | 133 |
statement is used to combine the data contained in two (<i>or more</i>) relational |
134 |
database tables based upon a common attribute. By establishing and then enforcing |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
135 |
column matches, a <code>JoinRowSet</code> object establishes relationships between |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
136 |
<code>RowSet</code> instances without the need to touch the originating data source. |
2 | 137 |
</ul> |
138 |
||
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
139 |
<h3><a id="impl">3.0 Implementer's Guide</a></h3> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
140 |
Compliant implementations of JDBC <code>RowSet</code> Implementations |
2 | 141 |
<b>must</b> follow the assertions described in this specification. In accordance |
142 |
with the terms of the <a href="http://www.jcp.org">Java Community Process</a>, a |
|
143 |
Test Compatibility Kit (TCK) can be licensed to ensure compatibility with the |
|
144 |
specification. The following paragraphs outline a number of starting points for |
|
145 |
implementers of the standard JDBC <code>RowSet</code> definitions. Implementers |
|
146 |
should also consult the <i>Implementer's Guide</i> in the <a |
|
147 |
href="spi/package-summary.html">javax.sql.rowset.spi</a> package for guidelines |
|
148 |
on <a href="spi/SyncProvider.html"><code>SyncProvider</code></a> implementations. |
|
24197 | 149 |
|
2 | 150 |
<ul> |
6529 | 151 |
<li><b>3.1 Constructor</b> |
152 |
<p> |
|
153 |
All <code>RowSet</code> implementations <strong>must</strong> provide a |
|
154 |
no-argument constructor. |
|
155 |
</li> |
|
156 |
<li><b>3.2 Role of the <code>BaseRowSet</code> Class</b> |
|
2 | 157 |
<p> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
158 |
A compliant JDBC <code>RowSet</code> implementation <b>must</b> implement one or more |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
159 |
standard interfaces specified in this package and <b>may</b> extend the |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
160 |
<a href="BaseRowSet.html"><code>BaseRowSet</code></a> abstract class. For example, a |
2 | 161 |
<code>CachedRowSet</code> implementation must implement the <code>CachedRowSet</code> |
162 |
interface and extend the <code>BaseRowSet</code> abstract class. The |
|
163 |
<code>BaseRowSet</code> class provides the standard architecture on which all |
|
164 |
<code>RowSet</code> implementations should be built, regardless of whether the |
|
165 |
<code>RowSet</code> objects exist in a connected or disconnected environment. |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
166 |
The <code>BaseRowSet</code> abstract class provides any <code>RowSet</code> implementation |
2 | 167 |
with its base functionality, including property manipulation and event notification |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
168 |
that is fully compliant with <a href="http://java.sun.com/products/javabeans">JavaBeans</a> |
2 | 169 |
component requirements. As an example, all implementations provided in the |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
170 |
reference implementations (contained in the <code>com.sun.rowset</code> package) use |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
171 |
the <code>BaseRowSet</code> class as a basis for their implementations. |
2 | 172 |
<P> |
173 |
The following table illustrates the features that the <code>BaseRowSet</code> |
|
174 |
abstract class provides. |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
175 |
<blockquote> |
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
176 |
<table class="striped" style="vertical-align:top; width:75%"> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
177 |
<caption>Features in <code>BaseRowSet</code></caption> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
178 |
<thead> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
179 |
<tr> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
180 |
<th>Feature</th> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
181 |
<th>Details</th> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
182 |
</tr> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
183 |
</thead> |
2 | 184 |
<tbody> |
185 |
<tr> |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
186 |
<td>Properties</td> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
187 |
<td>Provides standard JavaBeans property manipulation |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
188 |
mechanisms to allow applications to get and set <code>RowSet</code> command and |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
189 |
property values. Refer to the documentation of the <code>javax.sql.RowSet</code> |
2 | 190 |
interface (available in the JDBC 3.0 specification) for more details on |
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
191 |
the standard <code>RowSet</code> properties.</td> |
2 | 192 |
</tr> |
193 |
<tr> |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
194 |
<td>Event notification</td> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
195 |
<td>Provides standard JavaBeans event notifications |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
196 |
to registered event listeners. Refer to the documentation of <code>javax.sql.RowSetEvent</code> |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
197 |
interface (available in the JDBC 3.0 specification) for |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
198 |
more details on how to register and handle standard RowSet events generated |
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
199 |
by compliant implementations.</td> |
2 | 200 |
</tr> |
201 |
<tr> |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
202 |
<td>Setters for a RowSet object's command</td> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
203 |
<td>Provides a complete set of setter methods |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
204 |
for setting RowSet command parameters.</td> |
2 | 205 |
</tr> |
206 |
<tr> |
|
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
207 |
<td>Streams</td> |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
208 |
<td>Provides fields for storing of stream instances |
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
209 |
in addition to providing a set of constants for stream type designation.</td> |
2 | 210 |
</tr> |
24197 | 211 |
</tbody> |
2 | 212 |
</table> |
213 |
</blockquote> |
|
24197 | 214 |
|
6529 | 215 |
<li><b>3.3 Connected RowSet Requirements</b> |
2 | 216 |
<p> |
217 |
The <code>JdbcRowSet</code> describes a <code>RowSet</code> object that <b>must</b> always |
|
218 |
be connected to the originating data source. Implementations of the <code>JdbcRowSet</code> |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
219 |
should ensure that this connection is provided solely by a JDBC driver. |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
220 |
Furthermore, <code>RowSet</code> objects that are implementations of the |
2 | 221 |
<code>JdbcRowSet</code> interface and are therefore operating in a connected environment |
222 |
do not use the <code>SyncFactory</code> to obtain a <code>RowSetReader</code> object |
|
223 |
or a <code>RowSetWriter</code> object. They can safely rely on the JDBC driver to |
|
224 |
supply their needs by virtue of the presence of an underlying updatable and scrollable |
|
225 |
<code>ResultSet</code> implementation. |
|
226 |
||
227 |
<li> |
|
6529 | 228 |
<b>3.4 Disconnected RowSet Requirements</b> |
2 | 229 |
<p> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
230 |
A disconnected <code>RowSet</code> object, such as a <code>CachedRowSet</code> object, |
2 | 231 |
<b>should</b> delegate |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
232 |
connection management to a <code>SyncProvider</code> object provided by the |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
233 |
<code>SyncFactory</code>. To ensure fully disconnected semantics, all |
2 | 234 |
disconnected <code>RowSet</code> objects <b>must</b> ensure |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
235 |
that the original connection made to the data source to populate the <code>RowSet</code> |
2 | 236 |
object is closed to permit the garbage collector to recover and release resources. The |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
237 |
<code>SyncProvider</code> object ensures that the critical JDBC properties are |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
238 |
maintained in order to re-establish a connection to the data source when a |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
239 |
synchronization is required. A disconnected <code>RowSet</code> object should |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
240 |
therefore ensure that no |
2 | 241 |
extraneous references remain on the <code>Connection</code> object. |
24197 | 242 |
|
6529 | 243 |
<li><b>3.5 Role of RowSetMetaDataImpl</b> |
2 | 244 |
<p> |
245 |
The <code>RowsetMetaDataImpl</code> class is a utility class that provides an implementation of the |
|
246 |
<a href="../RowSetMetaData.html">RowSetMetaData</a> interface, supplying standard setter |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
247 |
method implementations for metadata for both connected and disconnected |
2 | 248 |
<code>RowSet</code> objects. All implementations are free to use this standard |
249 |
implementation but are not required to do so. |
|
24197 | 250 |
|
6529 | 251 |
<li><b>3.6 RowSetWarning Class</b> |
2 | 252 |
<p> |
253 |
The <code>RowSetWarning</code> class provides warnings that can be set |
|
254 |
on <code>RowSet</code> implementations. |
|
255 |
Similar to <a href="../../../java/sql/SQLWarning.html">SQLWarning</a> objects, |
|
256 |
<code>RowSetWarning</code> objects are silently chained to the object whose method |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
257 |
caused the warning to be thrown. All <code>RowSet</code> implementations <b>should</b> |
2 | 258 |
ensure that this chaining occurs if a warning is generated and also ensure that the |
259 |
warnings are available via the <code>getRowSetWarnings</code> method defined in either |
|
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
260 |
the <code>JdbcRowSet</code> interface or the <code>CachedRowSet</code> interface. |
2 | 261 |
After a warning has been retrieved with one of the |
262 |
<code>getRowSetWarnings</code> methods, the <code>RowSetWarning</code> method |
|
263 |
<code>getNextWarning</code> can be called on it to retrieve any warnings that might |
|
264 |
be chained on it. If a warning is returned, <code>getNextWarning</code> can be called |
|
265 |
on it, and so on until there are no more warnings. |
|
266 |
||
6529 | 267 |
<li><b>3.7 The Joinable Interface</b> |
2 | 268 |
<P> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
269 |
The <code>Joinable</code> interface provides both connected and disconnected |
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
270 |
<code>RowSet</code> objects with the capability to be added to a |
2 | 271 |
<code>JoinRowSet</code> object in an SQL <code>JOIN</code> operation. |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
272 |
A <code>RowSet</code> object that has implemented the <code>Joinable</code> |
2 | 273 |
interface can set a match column, retrieve a match column, or unset a match column. |
274 |
A <code>JoinRowSet</code> object can then use the <code>RowSet</code> object's |
|
6529 | 275 |
match column as a basis for adding the <code>RowSet</code> object. |
276 |
</li> |
|
277 |
||
278 |
<li><b>3.8 The RowSetFactory Interface</b> |
|
279 |
<p> |
|
280 |
A <code>RowSetFactory</code> implementation <strong>must</strong> |
|
281 |
be provided. |
|
282 |
</li> |
|
2 | 283 |
</ul> |
284 |
||
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
285 |
<h3><a id="relspec">4.0 Related Specifications</a></h3> |
2 | 286 |
<ul> |
45137
b6d407860c47
8180309: Minor update to javax.sql.rowset package.html
lancea
parents:
45126
diff
changeset
|
287 |
<li><a href="https://jcp.org/en/jsr/detail?id=221">JDBC 4.3 Specification</a> |
2 | 288 |
<li><a href="http://www.w3.org/XML/Schema">XML Schema</a> |
289 |
</ul> |
|
290 |
||
45126
9c8ac4361d9f
8180256: Fix HTML 5 issues in java.sql and java.sql.rowset modules
jjg
parents:
32210
diff
changeset
|
291 |
<h3><a id="reldocs">5.0 Related Documentation</a></h3> |
2 | 292 |
<ul> |
23559
289e67ca41ee
8037507: Fix broken link in javax/sql/rowset/package.html
lancea
parents:
23010
diff
changeset
|
293 |
<li><a href="http://docs.oracle.com/javase/tutorial/jdbc/basics/rowset.html"> |
32210
958d823579c3
8133480: replace some <tt> tags (obsolete in html5) in core-libs docs
avstepan
parents:
25991
diff
changeset
|
294 |
JDBC RowSet Tutorial</a> |
2 | 295 |
</ul> |
296 |
</body> |
|
297 |
</html> |