java.lang.Object | ||
↳ | javax.sql.rowset.spi.SyncProvider | |
↳ | com.sun.rowset.providers.RIXMLProvider |
A reference implementation of a JDBC RowSet synchronization provider with the ability to read and write rowsets in well formed XML using the standard WebRowSet schema.
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://java.sun.com/xml/ns/jdbc/webrowset.xsdThe
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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This provider is available to all JDBC
RowSet implementations as the
default persistence provider. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the default DATASOURCE_LOCK behavior of this reader
| |||||||||||
Returns the
SyncProvider grade of syncrhonization that
RowSet object instances can expect when using this
implementation. | |||||||||||
Returns
"javax.sql.rowset.providers.RIXMLProvider" , which is
the fully qualified class name of this provider implementation. | |||||||||||
Returns a null object as RowSetWriter objects are not returned by this
SyncProvider
| |||||||||||
Returns a null object as RowSetWriters are not returned by this SyncProvider
| |||||||||||
Returns the vendor name of the Reference Implemntation Optimistic
Syncchronication Provider
| |||||||||||
Returns the release version ID of the Reference Implementation Optimistic
Synchronization Provider.
| |||||||||||
Retrieves the reader that this
WebRowSet object
will call when its readXml method is called. | |||||||||||
Retrieves the writer that this
WebRowSet object
will call when its writeXml method is called. | |||||||||||
Throws an unsupported operation exception as this method does
function with non-locking XML data sources.
| |||||||||||
Sets this
WebRowSet object's reader to the given
XmlReader object. | |||||||||||
Sets this
WebRowSet object's writer to the given
XmlWriter object. | |||||||||||
Returns the default UPDATABLE_VIEW behavior of this reader
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This provider is available to all JDBC RowSet
implementations as the
default persistence provider.
Returns the default DATASOURCE_LOCK behavior of this reader
SyncProvider
object;
one of the following:
SyncProvider.DATASOURCE_NO_LOCK, SyncProvider.DATASOURCE_ROW_LOCK, SyncProvider.DATASOURCE_TABLE_LOCK, SyncProvider.DATASOURCE_DB_LOCK
SyncProviderException |
---|
Returns the SyncProvider
grade of syncrhonization that
RowSet
object instances can expect when using this
implementation. As this implementation provides no synchonization
facilities to the XML data source, the lowest grade is returned.
SyncProvider
syncronization 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
Returns "javax.sql.rowset.providers.RIXMLProvider"
, which is
the fully qualified class name of this provider implementation.
String
object with the fully specified class name of
this RIOptimisticProvider
implementation
Returns a null object as RowSetWriter objects are not returned by this SyncProvider
javax.sql.RowSetReader
object
Returns a null object as RowSetWriters are not returned by this SyncProvider
javax.sql.RowSetWriter
object
Returns the vendor name of the Reference Implemntation Optimistic Syncchronication Provider
String
detailing the vendor name of this
SyncProvider
Returns the release version ID of the Reference Implementation Optimistic Synchronization Provider.
String
detailing the version number of this SyncProvider
Retrieves the reader that this WebRowSet
object
will call when its readXml
method is called.
XmlReader
object for this SyncProviderSQLException | if a database access error occurs |
---|
Retrieves the writer that this WebRowSet
object
will call when its writeXml
method is called.
XmlWriter
for this SyncProviderSQLException | if a database access error occurs |
---|
Throws an unsupported operation exception as this method does function with non-locking XML data sources.
lock | one of the following constants indicating the severity
level of data source lock required:
SyncProvider.DATASOURCE_NO_LOCK, SyncProvider.DATASOURCE_ROW_LOCK, SyncProvider.DATASOURCE_TABLE_LOCK, SyncProvider.DATASOURCE_DB_LOCK, |
---|
SyncProviderException |
---|
Sets this WebRowSet
object's reader to the given
XmlReader
object.
SQLException | if a database access error occurs |
---|
Sets this WebRowSet
object's writer to the given
XmlWriter
object.
SQLException | if a database access error occurs |
---|
Returns the default UPDATABLE_VIEW behavior of this reader
int
saying whether this SyncProvider
object supports updating an SQL VIEW
; one of the
following:
SyncProvider.UPDATABLE_VIEW_SYNC,
SyncProvider.NONUPDATABLE_VIEW_SYNC