public class

WebRowSetImpl

extends CachedRowSetImpl
implements WebRowSet
java.lang.Object
   ↳ javax.sql.rowset.BaseRowSet
     ↳ com.sun.rowset.CachedRowSetImpl
       ↳ com.sun.rowset.WebRowSetImpl
Known Direct Subclasses

Class Overview

The standard implementation of the WebRowSet interface. See the interface defintion for full behaviour and implementation requirements.

Summary

[Expand]
Inherited Constants
From class javax.sql.rowset.BaseRowSet
From interface java.sql.ResultSet
From interface javax.sql.rowset.CachedRowSet
From interface javax.sql.rowset.WebRowSet
[Expand]
Inherited Fields
From class com.sun.rowset.CachedRowSetImpl
From class javax.sql.rowset.BaseRowSet
Public Constructors
WebRowSetImpl()
Constructs a new WebRowSet object initialized with the default values for a CachedRowSet object instance.
WebRowSetImpl(Hashtable env)
Constructs a new WebRowSet object initialized with the the synchronization SPI provider properties as specified in the Hashtable.
Public Methods
void readXml(InputStream iStream)
Reads a stream based XML input to populate this WebRowSet object.
void readXml(Reader reader)
Reads this WebRowSet object in its XML format.
void writeXml(OutputStream oStream)
Writes this WebRowSet object to the given OutputStream object in XML format.
void writeXml(ResultSet rs, Writer writer)
Populates this WebRowSet object with the data in the given ResultSet object and writes itself to the given java.io.Writer object in XML format.
void writeXml(Writer writer)
Writes this WebRowSet object to the given java.io.Writer object in XML format.
void writeXml(ResultSet rs, OutputStream oStream)
Populates this WebRowSet object with the data in the given ResultSet object and writes itself to the given java.io.OutputStream object in XML format.
[Expand]
Inherited Methods
From class com.sun.rowset.CachedRowSetImpl
From class javax.sql.rowset.BaseRowSet
From class java.lang.Object
From interface java.sql.ResultSet
From interface java.sql.Wrapper
From interface javax.sql.RowSet
From interface javax.sql.RowSetInternal
From interface javax.sql.rowset.CachedRowSet
From interface javax.sql.rowset.Joinable
From interface javax.sql.rowset.WebRowSet

Public Constructors

public WebRowSetImpl ()

Constructs a new WebRowSet object initialized with the default values for a CachedRowSet object instance. This provides the RIOptimistic provider to deliver synchronization capabilities to relational datastores and a default WebRowSetXmlReader object and a default WebRowSetXmlWriter object to enable XML output capabilities.

Throws
SQLException if an error occurs in configuring the default synchronization providers for relational and XML providers.

public WebRowSetImpl (Hashtable env)

Constructs a new WebRowSet object initialized with the the synchronization SPI provider properties as specified in the Hashtable. If this hashtable is empty or is null the default constructor is invoked.

Throws
SQLException if an error occurs in configuring the specified synchronization providers for the relational and XML providers; or if the Hashtanle is null

Public Methods

public void readXml (InputStream iStream)

Reads a stream based XML input to populate this WebRowSet object.

Parameters
iStream the java.io.InputStream from which this WebRowSet object will be populated
Throws
SQLException if a data source access error occurs
IOException if a IO exception occurs

public void readXml (Reader reader)

Reads this WebRowSet object in its XML format.

Parameters
reader the java.io.Reader stream from which this WebRowSet object will be populated
Throws
SQLException if a database access error occurs

public void writeXml (OutputStream oStream)

Writes this WebRowSet object to the given OutputStream object in XML format. Creates an an output stream of the internal state and contents of a WebRowSet for XML proceessing

Parameters
oStream the java.io.OutputStream stream to write to
Throws
SQLException if a datasource access error occurs
IOException if an IO exception occurs

public void writeXml (ResultSet rs, Writer writer)

Populates this WebRowSet object with the data in the given ResultSet object and writes itself to the given java.io.Writer object in XML format. This includes the rowset's data, properties, and metadata.

Parameters
rs the ResultSet object with which to populate this WebRowSet object
writer the java.io.Writer object to write to.
Throws
SQLException if an error occurs writing out the rowset contents to XML

public void writeXml (Writer writer)

Writes this WebRowSet object to the given java.io.Writer object in XML format. This includes the rowset's data, properties, and metadata.

Parameters
writer the java.io.Writer stream to write to
Throws
SQLException if an error occurs writing out the rowset contents to XML

public void writeXml (ResultSet rs, OutputStream oStream)

Populates this WebRowSet object with the data in the given ResultSet object and writes itself to the given java.io.OutputStream object in XML format. This includes the rowset's data, properties, and metadata.

Parameters
rs the ResultSet object with which to populate this WebRowSet object
oStream the java.io.OutputStream to write to
Throws
SQLException if a datasource access error occurs
IOException if an IO exception occurs