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