src/java.sql.rowset/share/classes/javax/sql/rowset/spi/SyncProvider.java
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 57746 5a9af5262566
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
54106
9a90236ab64c 8220253: Fix Headings in java.sql.rowset
lancea
parents: 47216
diff changeset
     2
 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * 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
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.sql.rowset.spi;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import javax.sql.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * The synchronization mechanism that provides reader/writer capabilities for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * disconnected <code>RowSet</code> objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * A <code>SyncProvider</code> implementation is a class that extends the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * <code>SyncProvider</code> abstract class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * A <code>SyncProvider</code> implementation is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * identified by a unique ID, which is its fully qualified class name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * This name must be registered with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <code>SyncFactory</code> SPI, thus making the implementation available to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * all <code>RowSet</code> implementations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * The factory mechanism in the reference implementation uses this name to instantiate
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * the implementation, which can then provide a <code>RowSet</code> object with its
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * reader (a <code>javax.sql.RowSetReader</code> object) and its writer (a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <code>javax.sql.RowSetWriter</code> object).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * The Jdbc <code>RowSet</code> Implementations specification provides two
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * reference implementations of the <code>SyncProvider</code> abstract class:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <code>RIOptimisticProvider</code> and <code>RIXMLProvider</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * The <code>RIOptimisticProvider</code> can set any <code>RowSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * implementation with a <code>RowSetReader</code> object and a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <code>RowSetWriter</code> object.  However, only the <code>RIXMLProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * implementation can set an <code>XmlReader</code> object and an
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <code>XmlWriter</code> object. A <code>WebRowSet</code> object uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <code>XmlReader</code> object to read data in XML format to populate itself with that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * data.  It uses the <code>XmlWriter</code> object to write itself to a stream or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * <code>java.io.Writer</code> object in XML format.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 14342
diff changeset
    57
 *
55208
4158e6a864d4 8225306: bad headings in java.sql.rowset SyncProvider.java
jjg
parents: 54106
diff changeset
    58
 * <h2>1.0 Naming Convention for Implementations</h2>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * As a guide  to naming <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * implementations, the following should be noted:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * <li>The name for a <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * is its fully qualified class name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * <li>It is recommended that vendors supply a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * <code>SyncProvider</code> implementation in a package named <code>providers</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * For instance, if a vendor named Fred, Inc. offered a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * <code>SyncProvider</code> implementation, you could have the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *     Vendor name:  Fred, Inc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 *     Domain name of vendor:  com.fred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 *     Package name:  com.fred.providers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 *     SyncProvider implementation class name:  HighAvailabilityProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 *     Fully qualified class name of SyncProvider implementation:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 *                        com.fred.providers.HighAvailabilityProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 * The following line of code uses the fully qualified name to register
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 * this implementation with the <code>SyncFactory</code> static instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 *     SyncFactory.registerProvider(
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 *                          "com.fred.providers.HighAvailabilityProvider");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * The default <code>SyncProvider</code> object provided with the reference
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * implementation uses the following name:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 *     com.sun.rowset.providers.RIOptimisticProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 * Vendors should refer to the reference implementation synchronization
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * providers for additional guidance on how to implement a new
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * <code>SyncProvider</code> implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 *
54106
9a90236ab64c 8220253: Fix Headings in java.sql.rowset
lancea
parents: 47216
diff changeset
    97
 * <h2>2.0 How a <code>RowSet</code> Object Gets Its Provider</h2>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 * A disconnected <code>Rowset</code> object may get access to a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 * <code>SyncProvider</code> object in one of the following two ways:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 *  <LI>Using a constructor<BR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 *      <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 *       CachedRowSet crs = new CachedRowSet(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 *                  "com.fred.providers.HighAvailabilitySyncProvider");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 *      </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 *  <LI>Using the <code>setSyncProvider</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 *      <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 *       CachedRowSet crs = new CachedRowSet();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 *       crs.setSyncProvider("com.fred.providers.HighAvailabilitySyncProvider");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 *      </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * By default, the reference implementations of the <code>RowSet</code> synchronization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 * providers are always available to the Java platform.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * If no other pluggable synchronization providers have been correctly
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 * registered, the <code>SyncFactory</code> will automatically generate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 * an instance of the default <code>SyncProvider</code> reference implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 * Thus, in the preceding code fragment, if no implementation named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 * <code>com.fred.providers.HighAvailabilitySyncProvider</code> has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 * registered with the <code>SyncFactory</code> instance, <i>crs</i> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 * assigned the default provider in the reference implementation, which is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 * <code>com.sun.rowset.providers.RIOptimisticProvider</code>.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 14342
diff changeset
   125
 *
54106
9a90236ab64c 8220253: Fix Headings in java.sql.rowset
lancea
parents: 47216
diff changeset
   126
 * <h2>3.0 Violations and Synchronization Issues</h2>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 * If an update between a disconnected <code>RowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 * and a data source violates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 * the original query or the underlying data source constraints, this will
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 * result in undefined behavior for all disconnected <code>RowSet</code> implementations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
 * and their designated <code>SyncProvider</code> implementations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * Not defining the behavior when such violations occur offers greater flexibility
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 * for a <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * implementation to determine its own best course of action.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
 * A <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 * may choose to implement a specific handler to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 * handle a subset of query violations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * However if an original query violation or a more general data source constraint
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 * violation is not handled by the <code>SyncProvider</code> implementation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 * all <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 * objects must throw a <code>SyncProviderException</code>.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 14342
diff changeset
   143
 *
54106
9a90236ab64c 8220253: Fix Headings in java.sql.rowset
lancea
parents: 47216
diff changeset
   144
 * <h2>4.0 Updatable SQL VIEWs</h2>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 * It is possible for any disconnected or connected <code>RowSet</code> object to be populated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 * from an SQL query that is formulated originally from an SQL <code>VIEW</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 * While in many cases it is possible for an update to be performed to an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 * underlying view, such an update requires additional metadata, which may vary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 * The <code>SyncProvider</code> class provides two constants to indicate whether
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
 * an implementation supports updating an SQL <code>VIEW</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
 * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
 * <li><code><b>NONUPDATABLE_VIEW_SYNC</b></code> - Indicates that a <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 * implementation does not support synchronization with an SQL <code>VIEW</code> as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * underlying source of data for the <code>RowSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 * <li><code><b>UPDATABLE_VIEW_SYNC</b></code> - Indicates that a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 * supports synchronization with an SQL <code>VIEW</code> as the underlying source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
 * of data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 * The default is for a <code>RowSet</code> object not to be updatable if it was
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 * populated with data from an SQL <code>VIEW</code>.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 14342
diff changeset
   163
 *
54106
9a90236ab64c 8220253: Fix Headings in java.sql.rowset
lancea
parents: 47216
diff changeset
   164
 * <h2>5.0 <code>SyncProvider</code> Constants</h2>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * The <code>SyncProvider</code> class provides three sets of constants that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * are used as return values or parameters for <code>SyncProvider</code> methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * <code>SyncProvider</code> objects may be implemented to perform synchronization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 * between a <code>RowSet</code> object and its underlying data source with varying
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 24968
diff changeset
   169
 * degrees of care. The first group of constants indicate how synchronization
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
 * is handled. For example, <code>GRADE_NONE</code> indicates that a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
 * <code>SyncProvider</code> object will not take any care to see what data is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
 * valid and will simply write the <code>RowSet</code> data to the data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
 * <code>GRADE_MODIFIED_AT_COMMIT</code> indicates that the provider will check
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * only modified data for validity.  Other grades check all data for validity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * or set locks when data is modified or loaded.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * <OL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 *  <LI>Constants to indicate the synchronization grade of a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 *     <code>SyncProvider</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
 *   <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
 *    <LI>SyncProvider.GRADE_NONE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
 *    <LI>SyncProvider.GRADE_MODIFIED_AT_COMMIT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
 *    <LI>SyncProvider.GRADE_CHECK_ALL_AT_COMMIT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
 *    <LI>SyncProvider.GRADE_LOCK_WHEN_MODIFIED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 *    <LI>SyncProvider.GRADE_LOCK_WHEN_LOADED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
 *   </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
 *  <LI>Constants to indicate what locks are set on the data source
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
 *   <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
 *     <LI>SyncProvider.DATASOURCE_NO_LOCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
 *     <LI>SyncProvider.DATASOURCE_ROW_LOCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
 *     <LI>SyncProvider.DATASOURCE_TABLE_LOCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
 *     <LI>SyncProvider.DATASOURCE_DB_LOCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
 *   </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
 *  <LI>Constants to indicate whether a <code>SyncProvider</code> object can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
 *       perform updates to an SQL <code>VIEW</code> <BR>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
 *       These constants are explained in the preceding section (4.0).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
 *   <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
 *     <LI>SyncProvider.UPDATABLE_VIEW_SYNC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
 *     <LI>SyncProvider.NONUPDATABLE_VIEW_SYNC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
 *   </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
 * </OL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
 * @author Jonathan Bruce
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
 * @see javax.sql.rowset.spi.SyncFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
 * @see javax.sql.rowset.spi.SyncFactoryException
24968
3308660aa3f2 8046389: Add missing @since tag under javax.sql.**
henryjen
parents: 23010
diff changeset
   205
 * @since 1.5
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
public abstract class SyncProvider {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    * Creates a default <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    public SyncProvider() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * Returns the unique identifier for this <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @return a <code>String</code> object with the fully qualified class name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     *         this <code>SyncProvider</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    public abstract String getProviderID();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * Returns a <code>javax.sql.RowSetReader</code> object, which can be used to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * populate a <code>RowSet</code> object with data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * @return a <code>javax.sql.RowSetReader</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    public abstract RowSetReader getRowSetReader();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * Returns a <code>javax.sql.RowSetWriter</code> object, which can be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * used to write a <code>RowSet</code> object's data back to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * underlying data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * @return a <code>javax.sql.RowSetWriter</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    public abstract RowSetWriter getRowSetWriter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * Returns a constant indicating the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * grade of synchronization a <code>RowSet</code> object can expect from
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * this <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * @return an int that is one of the following constants:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     *           SyncProvider.GRADE_NONE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     *           SyncProvider.GRADE_CHECK_MODIFIED_AT_COMMIT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     *           SyncProvider.GRADE_CHECK_ALL_AT_COMMIT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     *           SyncProvider.GRADE_LOCK_WHEN_MODIFIED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     *           SyncProvider.GRADE_LOCK_WHEN_LOADED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    public abstract int getProviderGrade();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * Sets a lock on the underlying data source at the level indicated by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * <i>datasource_lock</i>. This should cause the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * <code>SyncProvider</code> to adjust its behavior by increasing or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * decreasing the level of optimism it provides for a successful
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * synchronization.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * @param datasource_lock one of the following constants indicating the severity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     *           level of data source lock required:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     *           SyncProvider.DATASOURCE_NO_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     *           SyncProvider.DATASOURCE_ROW_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     *           SyncProvider.DATASOURCE_TABLE_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     *           SyncProvider.DATASOURCE_DB_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * @throws SyncProviderException if an unsupported data source locking level
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     *           is set.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     * @see #getDataSourceLock
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
    public abstract void setDataSourceLock(int datasource_lock)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
        throws SyncProviderException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * Returns the current data source lock severity level active in this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     * <code>SyncProvider</code> implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     * @return a constant indicating the current level of data source lock
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     *        active in this <code>SyncProvider</code> object;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     *         one of the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     *           SyncProvider.DATASOURCE_NO_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     *           SyncProvider.DATASOURCE_ROW_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     *           SyncProvider.DATASOURCE_TABLE_LOCK,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     *           SyncProvider.DATASOURCE_DB_LOCK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * </pre>
14014
da3648e13e67 8000269: Cleanup javadoc warnings
alanb
parents: 6671
diff changeset
   290
     * @throws SyncProviderException if an error occurs determining the data
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     *        source locking level.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * @see #setDataSourceLock
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
    public abstract int getDataSourceLock()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
        throws SyncProviderException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     * Returns whether this <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     * can perform synchronization between a <code>RowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     * and the SQL <code>VIEW</code> in the data source from which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     * the <code>RowSet</code> object got its data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * @return an <code>int</code> saying whether this <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     *         object supports updating an SQL <code>VIEW</code>; one of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     *         following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     *            SyncProvider.UPDATABLE_VIEW_SYNC,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     *            SyncProvider.NONUPDATABLE_VIEW_SYNC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
    public abstract int supportsUpdatableView();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * Returns the release version of this <code>SyncProvider</code> instance.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     * @return a <code>String</code> detailing the release version of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
     *     <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
    public abstract String getVersion();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * Returns the vendor name of this <code>SyncProvider</code> instance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * @return a <code>String</code> detailing the vendor name of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     *     <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
    public abstract String getVendor();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     * Standard description of synchronization grades that a SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
     * could provide.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * Indicates that no synchronization with the originating data source is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     * provided. A <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * implementation returning this grade will simply attempt to write
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     * updates in the <code>RowSet</code> object to the underlying data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * source without checking the validity of any data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   341
    public static final int GRADE_NONE = 1;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     * Indicates a low level optimistic synchronization grade with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
     * respect to the originating data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * A <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * returning this grade will check only rows that have changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   351
    public static final int GRADE_CHECK_MODIFIED_AT_COMMIT = 2;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * Indicates a high level optimistic synchronization grade with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * respect to the originating data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * A <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     * returning this grade will check all rows, including rows that have not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     * changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   361
    public static final int GRADE_CHECK_ALL_AT_COMMIT = 3;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
     * Indicates a pessimistic synchronization grade with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
     * respect to the originating data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * A <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * implementation returning this grade will lock the row in the originating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * data source.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   371
    public static final int GRADE_LOCK_WHEN_MODIFIED = 4;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * Indicates the most pessimistic synchronization grade with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * respect to the originating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * data source. A <code>SyncProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     * implementation returning this grade will lock the entire view and/or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * table affected by the original statement used to populate a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     * <code>RowSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   381
    public static final int GRADE_LOCK_WHEN_LOADED = 5;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     * Indicates that no locks remain on the originating data source. This is the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     * lock setting for all <code>SyncProvider</code> implementations unless
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     * otherwise directed by a <code>RowSet</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   388
    public static final int DATASOURCE_NO_LOCK = 1;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     * Indicates that a lock is placed on the rows that are touched by the original
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * SQL statement used to populate the <code>RowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * that is using this <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   395
    public static final int DATASOURCE_ROW_LOCK = 2;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     * Indicates that a lock is placed on all tables that are touched by the original
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * SQL statement used to populate the <code>RowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * that is using this <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   402
    public static final int DATASOURCE_TABLE_LOCK = 3;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     * Indicates that a lock is placed on the entire data source that is the source of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * data for the <code>RowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * that is using this <code>SyncProvider</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   409
    public static final int DATASOURCE_DB_LOCK = 4;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * Indicates that a <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * supports synchronization between a <code>RowSet</code> object and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * the SQL <code>VIEW</code> used to populate it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   416
    public static final int UPDATABLE_VIEW_SYNC = 5;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * Indicates that a <code>SyncProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     * does <B>not</B> support synchronization between a <code>RowSet</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * object and the SQL <code>VIEW</code> used to populate it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     */
6529
bdf98f8db729 6843995: RowSet 1.1 updates
lancea
parents: 5506
diff changeset
   423
    public static final int NONUPDATABLE_VIEW_SYNC = 6;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
}