jdk/src/share/classes/com/sun/rowset/providers/RIXMLProvider.java
author lancea
Sat, 18 Sep 2010 06:09:48 -0400
changeset 6671 c5fbc05d7347
parent 5506 202f599c92aa
permissions -rw-r--r--
6984044: RowSet source needs to rebrand vendor references Reviewed-by: darcy, ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
6671
c5fbc05d7347 6984044: RowSet source needs to rebrand vendor references
lancea
parents: 5506
diff changeset
     2
 * Copyright (c) 2003, 2010, 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 com.sun.rowset.providers;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import com.sun.rowset.JdbcRowSetResourceBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.sql.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import javax.sql.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import javax.sql.rowset.spi.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * A reference implementation of a JDBC RowSet synchronization provider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * with the ability to read and write rowsets in well formed XML using the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * standard WebRowSet schema.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * <h3>1.0 Background</h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * This synchronization provider is registered with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * <code>SyncFactory</code> by default as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <code>com.sun.rowset.providers.RIXMLProvider</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * A <code>WebRowSet</code> object uses an <code>RIXMLProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * to read an XML data source or to write itself in XML format using the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * <code>WebRowSet</code> XML schema definition available at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 *     <a href="http://java.sun.com/xml/ns/jdbc/webrowset.xsd">http://java.sun.com/xml/ns/jdbc/webrowset.xsd</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * The <code>RIXMLProvider</code> implementation has a synchronization level of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * GRADE_NONE, which means that it does no checking at all for conflicts.  It
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * simply writes a <code>WebRowSet</code> object to a file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <h3>2.0 Usage</h3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * A <code>WebRowSet</code> implementation is created with an <code>RIXMLProvider</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * by default.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *     WebRowSet wrs = new FooWebRowSetImpl();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * The <code>SyncFactory</code> always provides an instance of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * <code>RIOptimisticProvider</code> when no provider is specified,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * but the implementation of the default constructor for <code>WebRowSet</code> sets the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * provider to be the <code>RIXMLProvider</code> implementation.  Therefore,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * the following line of code is executed behind the scenes as part of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * implementation of the default constructor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 *     wrs.setSyncProvider("com.sun.rowset.providers.RIXMLProvider");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * See the standard <code>RowSet</code> reference implementations in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * <code>com.sun.rowset</code> package for more details.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * @author  Jonathan Bruce
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 * @see javax.sql.rowset.spi.SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * @see javax.sql.rowset.spi.SyncProviderException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * @see javax.sql.rowset.spi.SyncFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * @see javax.sql.rowset.spi.SyncFactoryException
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
public final class RIXMLProvider extends SyncProvider {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * The unique provider identifier.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    private String providerID = "com.sun.rowset.providers.RIXMLProvider";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * The vendor name of this SyncProvider implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     */
6671
c5fbc05d7347 6984044: RowSet source needs to rebrand vendor references
lancea
parents: 5506
diff changeset
    88
    private String vendorName = "Oracle Corporation";
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * The version number of this SyncProvider implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    private String versionNumber = "1.0";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
    private JdbcRowSetResourceBundle resBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    private XmlReader xmlReader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    private XmlWriter xmlWriter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * This provider is available to all JDBC <code>RowSet</code> implementations as the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * default persistence provider.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    public RIXMLProvider() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        providerID = this.getClass().getName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
           resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        } catch(IOException ioe) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            throw new RuntimeException(ioe);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * Returns <code>"javax.sql.rowset.providers.RIXMLProvider"</code>, which is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * the fully qualified class name of this provider implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @return a <code>String</code> object with the fully specified class name of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     *           this <code>RIOptimisticProvider</code> implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    public String getProviderID() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        return providerID;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    // additional methods that sit on top of reader/writer methods back to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    // original datasource. Allow XML state to be written out and in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * Sets this <code>WebRowSet</code> object's reader to the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * <code>XmlReader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    public void setXmlReader(XmlReader reader) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        xmlReader = reader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * Sets this <code>WebRowSet</code> object's writer to the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * <code>XmlWriter</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    public void setXmlWriter(XmlWriter writer) throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        xmlWriter = writer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * Retrieves the reader that this <code>WebRowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * will call when its <code>readXml</code> method is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * @return the <code>XmlReader</code> object for this SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    public XmlReader getXmlReader() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        return xmlReader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * Retrieves the writer that this <code>WebRowSet</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * will call when its <code>writeXml</code> method is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * @return the <code>XmlWriter</code> for this SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * @throws SQLException if a database access error occurs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    public XmlWriter getXmlWriter() throws SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        return xmlWriter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * Returns the <code>SyncProvider</code> grade of syncrhonization that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * <code>RowSet</code> object instances can expect when using this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * implementation. As this implementation provides no synchonization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * facilities to the XML data source, the lowest grade is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * @return the <code>SyncProvider</code> syncronization grade of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     *     provider; must be one of the following constants:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     *       <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     *          SyncProvider.GRADE_NONE,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *          SyncProvider.GRADE_MODIFIED_AT_COMMIT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     *          SyncProvider.GRADE_CHECK_ALL_AT_COMMIT,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     *          SyncProvider.GRADE_LOCK_WHEN_MODIFIED,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     *          SyncProvider.GRADE_LOCK_WHEN_LOADED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     *       </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    public int getProviderGrade() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        return SyncProvider.GRADE_NONE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * Returns the default UPDATABLE_VIEW behavior of this reader
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public int supportsUpdatableView() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        return SyncProvider.NONUPDATABLE_VIEW_SYNC;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * Returns the default DATASOURCE_LOCK behavior of this reader
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    public int getDataSourceLock() throws SyncProviderException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        return SyncProvider.DATASOURCE_NO_LOCK;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * Throws an unsupported operation exception as this method does
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * function with non-locking XML data sources.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    public void setDataSourceLock(int lock) throws SyncProviderException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        throw new UnsupportedOperationException(resBundle.handleGetObject("rixml.unsupp").toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * Returns a null object as RowSetWriters are not returned by this SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    public RowSetWriter getRowSetWriter() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * Returns a null object as RowSetWriter objects are not returned by this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    public RowSetReader getRowSetReader() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        return null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * Returns the release version ID of the Reference Implementation Optimistic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     * Synchronization Provider.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * @return the <code>String</code> detailing the version number of this SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    public String getVersion() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        return this.versionNumber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * Returns the vendor name of the Reference Implemntation Optimistic
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * Syncchronication Provider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * @return the <code>String</code> detailing the vendor name of this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     *      SyncProvider
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    public String getVendor() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
        return this.vendorName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
}