SyncFactory by default as the
com.sun.rowset.providers.RIXMLProvider.
A WebRowSet object uses an RIXMLProvider implementation
to read an XML data source or to write itself in XML format using the
WebRowSet XML schema definition available at
http://xmlns.jcp.org/xml/ns//jdbc/webrowset.xsd
The RIXMLProvider implementation has a synchronization level of
GRADE_NONE, which means that it does no checking at all for conflicts. It
simply writes a WebRowSet object to a file.
WebRowSet implementation is created with an RIXMLProvider
by default.
WebRowSet wrs = new FooWebRowSetImpl();
The SyncFactory always provides an instance of
RIOptimisticProvider when no provider is specified,
but the implementation of the default constructor for WebRowSet sets the
provider to be the RIXMLProvider implementation. Therefore,
the following line of code is executed behind the scenes as part of the
implementation of the default constructor.
wrs.setSyncProvider("com.sun.rowset.providers.RIXMLProvider");
See the standard RowSet reference implementations in the
com.sun.rowset package for more details.
javax.sql.rowset.spi.SyncProvider , javax.sql.rowset.spi.SyncProviderException , javax.sql.rowset.spi.SyncFactory , javax.sql.rowset.spi.SyncFactoryException
| Modifier and Type | Field and Description |
|---|---|
| private String | providerID
The unique provider identifier. |
| private JdbcRowSetResourceBundle | |
| private String | vendorName
The vendor name of this SyncProvider implementation. |
| private String | versionNumber
The version number of this SyncProvider implementation. |
| private XmlReader | |
| private XmlWriter |
| Access | Constructor and Description |
|---|---|
| public | RIXMLProvider()
This provider is available to all JDBC |
| Modifier and Type | Method and Description |
|---|---|
| public int | getDataSourceLock()
Implements abstract javax. Returns the default DATASOURCE_LOCK behavior of this reader |
| public int | Returns: theSyncProvider synchronization grade of this
provider; must be one of the following constants:
SyncProvider.GRADE_NONE,
SyncProvider.GRADE_MODIFIED_AT_COMMIT,
SyncProvider.GRADE_CHECK_ALL_AT_COMMIT,
SyncProvider.GRADE_LOCK_WHEN_MODIFIED,
SyncProvider.GRADE_LOCK_WHEN_LOADED
Implements abstract javax. Returns the |
| public String | Returns: aString object with the fully specified class name of
this RIOptimisticProvider implementationImplements abstract javax. Returns |
| public RowSetReader | getRowSetReader()
Implements abstract javax. Returns a null object as RowSetWriter objects are not returned by this SyncProvider |
| public RowSetWriter | getRowSetWriter()
Implements abstract javax. Returns a null object as RowSetWriters are not returned by this SyncProvider |
| public String | Returns: theString detailing the vendor name of this
SyncProviderImplements abstract javax. Returns the vendor name of the Reference Implementation Optimistic Synchronization Provider |
| public String | Returns: theString detailing the version number of this SyncProviderImplements abstract javax. Returns the release version ID of the Reference Implementation Optimistic Synchronization Provider. |
| public XmlReader | Returns: theXmlReader object for this SyncProviderRetrieves the reader that this |
| public XmlWriter | Returns: theXmlWriter for this SyncProviderRetrieves the writer that this |
| public void | setDataSourceLock(int lock)
Implements abstract javax. Throws an unsupported operation exception as this method does function with non-locking XML data sources. |
| public void | |
| public void | |
| public int | supportsUpdatableView()
Implements abstract javax. Returns the default UPDATABLE_VIEW behavior of this reader |
| providerID | back to summary |
|---|---|
| private String providerID The unique provider identifier. | |
| resBundle | back to summary |
|---|---|
| private JdbcRowSetResourceBundle resBundle | |
| vendorName | back to summary |
|---|---|
| private String vendorName The vendor name of this SyncProvider implementation. | |
| versionNumber | back to summary |
|---|---|
| private String versionNumber The version number of this SyncProvider implementation. | |
| xmlReader | back to summary |
|---|---|
| private XmlReader xmlReader | |
| xmlWriter | back to summary |
|---|---|
| private XmlWriter xmlWriter | |
| RIXMLProvider | back to summary |
|---|---|
| public RIXMLProvider() This provider is available to all JDBC | |
| getDataSourceLock | back to summary |
|---|---|
| public int getDataSourceLock() throws SyncProviderException Implements abstract javax. Returns the default DATASOURCE_LOCK behavior of this reader
| |
| getProviderGrade | back to summary |
|---|---|
| public int getProviderGrade() Implements abstract javax. Returns the
| |
| getProviderID | back to summary |
|---|---|
| public String getProviderID() Implements abstract javax. Returns
| |
| getRowSetReader | back to summary |
|---|---|
| public RowSetReader getRowSetReader() Implements abstract javax. Returns a null object as RowSetWriter objects are not returned by this SyncProvider | |
| getRowSetWriter | back to summary |
|---|---|
| public RowSetWriter getRowSetWriter() Implements abstract javax. Returns a null object as RowSetWriters are not returned by this SyncProvider | |
| getVendor | back to summary |
|---|---|
| public String getVendor() Implements abstract javax. Returns the vendor name of the Reference Implementation Optimistic Synchronization Provider
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Implements abstract javax. Returns the release version ID of the Reference Implementation Optimistic Synchronization Provider.
| |
| getXmlReader | back to summary |
|---|---|
| public XmlReader getXmlReader() throws SQLException Retrieves the reader that this
| |
| getXmlWriter | back to summary |
|---|---|
| public XmlWriter getXmlWriter() throws SQLException Retrieves the writer that this
| |
| setDataSourceLock | back to summary |
|---|---|
| public void setDataSourceLock(int lock) throws SyncProviderException Implements abstract javax. Throws an unsupported operation exception as this method does function with non-locking XML data sources.
| |
| setXmlReader | back to summary |
|---|---|
| public void setXmlReader(XmlReader reader) throws SQLException Sets this
| |
| setXmlWriter | back to summary |
|---|---|
| public void setXmlWriter(XmlWriter writer) throws SQLException Sets this
| |
| supportsUpdatableView | back to summary |
|---|---|
| public int supportsUpdatableView() Implements abstract javax. Returns the default UPDATABLE_VIEW behavior of this reader | |