APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.rowset

public Class WebRowSetImpl

extends CachedRowSetImpl
implements WebRowSet
Class Inheritance
All Implemented Interfaces
javax.sql.rowset.WebRowSet, javax.sql.rowset.CachedRowSet, javax.sql.rowset.Joinable, javax.sql.RowSet, java.sql.ResultSet, java.lang.AutoCloseable, java.sql.Wrapper
Known Direct Subclasses
com.sun.rowset.FilteredRowSetImpl, com.sun.rowset.JoinRowSetImpl
Imports
java.sql.*, javax.sql.*, java.io.*, java.math.*, java.util.*, java.text.*, org.xml.sax.*, javax.sql.rowset.*, javax.sql.rowset.spi.*, com.sun.rowset.providers.*, com.sun.rowset.internal.*

The standard implementation of the WebRowSet interface. See the interface definition for full behavior and implementation requirements.
Author
Jonathan Bruce, Amit Handa

Field Summary

Modifier and TypeField and Description
private int
private SyncProvider
pack-priv static final long
private WebRowSetXmlReader
xmlReader

The WebRowSetXmlReader object that this WebRowSet object will call when the method WebRowSet.readXml is invoked.

private WebRowSetXmlWriter
xmlWriter

The WebRowSetXmlWriter object that this WebRowSet object will call when the method WebRowSet.writeXml is invoked.

Inherited from com.sun.rowset.CachedRowSetImpl:
resBundle

Constructor Summary

AccessConstructor and Description
public
WebRowSetImpl()

Constructs a new WebRowSet object initialized with the default values for a CachedRowSet object instance.

public
WebRowSetImpl(Hashtable<K, V> env)

Constructs a new WebRowSet object initialized with the synchronization SPI provider properties as specified in the Hashtable.

Method Summary

Modifier and TypeMethod and Description
private void
readObject(ObjectInputStream ois)

Hides com.sun.rowset.CachedRowSetImpl.readObject.

This method re populates the resBundle during the deserialization process

public void
readXml(Reader reader)

Implements javax.sql.rowset.WebRowSet.readXml.

Reads this WebRowSet object in its XML format.

public void
readXml(InputStream iStream)

Implements javax.sql.rowset.WebRowSet.readXml.

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

public void
writeXml(ResultSet rs, Writer writer)

Implements javax.sql.rowset.WebRowSet.writeXml.

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.

public void
writeXml(Writer writer)

Implements javax.sql.rowset.WebRowSet.writeXml.

Writes this WebRowSet object to the given java.io.Writer object in XML format.

public void
writeXml(OutputStream oStream)

Implements javax.sql.rowset.WebRowSet.writeXml.

Writes this WebRowSet object to the given OutputStream object in XML format.

public void
writeXml(ResultSet rs, OutputStream oStream)

Implements javax.sql.rowset.WebRowSet.writeXml.

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.

Inherited from com.sun.rowset.CachedRowSetImpl:
absoluteacceptChangesacceptChangesafterLastbeforeFirstcancelRowUpdatesclearWarningscloneclosecolumnUpdatedcolumnUpdatedcommitcreateCopycreateCopyNoConstraintscreateCopySchemacreateShareddeleteRowexecuteexecutefindColumnfirstgetArraygetArraygetAsciiStreamgetAsciiStreamgetBigDecimalgetBigDecimalgetBigDecimalgetBigDecimalgetBinaryStreamgetBinaryStreamgetBlobgetBlobgetBooleangetBooleangetBytegetBytegetBytesgetBytesgetCharacterStreamgetCharacterStreamgetClobgetClobgetConnectiongetCurrentRowgetCursorNamegetDategetDategetDategetDategetDoublegetDoublegetFloatgetFloatgetHoldabilitygetIntgetIntgetKeyColumnsgetLonggetLonggetMatchColumnIndexesgetMatchColumnNamesgetMetaDatagetNCharacterStreamgetNCharacterStreamgetNClobgetNClobgetNStringgetNStringgetObjectgetObjectgetObjectgetObjectgetObjectgetObjectgetOriginalgetOriginalRowgetPageSizegetRefgetRefgetRowgetRowIdgetRowIdgetRowSetWarningsgetShortgetShortgetSQLXMLgetSQLXMLgetStatementgetStringgetStringgetSyncProvidergetTableNamegetTimegetTimegetTimegetTimegetTimestampgetTimestampgetTimestampgetTimestampgetUnicodeStreamgetUnicodeStreamgetURLgetURLgetWarningsinsertRowinternalFirstinternalLastinternalNextinternalPreviousisAfterLastisBeforeFirstisClosedisFirstisLastisWrapperForlastmoveToCurrentRowmoveToInsertRownextnextPagepopulatepopulatepreviouspreviousPagerefreshRowrelativereleaseremoveCurrentRowrestoreOriginalrollbackrollbackrowDeletedrowInsertedrowSetPopulatedrowUpdatedsetAsciiStreamsetAsciiStreamsetBigDecimalsetBinaryStreamsetBinaryStreamsetBlobsetBlobsetBlobsetBlobsetBlobsetBooleansetBytesetBytessetCharacterStreamsetCharacterStreamsetClobsetClobsetClobsetClobsetClobsetCommandsetDatesetDatesetDoublesetFloatsetIntsetKeyColumnssetLongsetMatchColumnsetMatchColumnsetMatchColumnsetMatchColumnsetMetaDatasetNCharacterStreamsetNCharacterStreamsetNCharacterStreamsetNCharacterStreamsetNClobsetNClobsetNClobsetNClobsetNClobsetNClobsetNStringsetNStringsetNullsetNullsetObjectsetObjectsetObjectsetOriginalsetOriginalRowsetPageSizesetRowIdsetRowIdsetRowInsertedsetShortsetSQLXMLsetSQLXMLsetStringsetSyncProvidersetTableNamesetTimesetTimesetTimestampsetTimestampsetURLsizetoCollectiontoCollectiontoCollectionundoDeleteundoInsertundoUpdateunsetMatchColumnunsetMatchColumnunsetMatchColumnunsetMatchColumnunwrapupdateArrayupdateArrayupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateBigDecimalupdateBigDecimalupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBooleanupdateBooleanupdateByteupdateByteupdateBytesupdateBytesupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateClobupdateClobupdateClobupdateClobupdateClobupdateClobupdateDateupdateDateupdateDoubleupdateDoubleupdateFloatupdateFloatupdateIntupdateIntupdateLongupdateLongupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNStringupdateNStringupdateNullupdateNullupdateObjectupdateObjectupdateObjectupdateObjectupdateRefupdateRefupdateRowupdateRowIdupdateRowIdupdateShortupdateShortupdateSQLXMLupdateSQLXMLupdateStringupdateStringupdateTimeupdateTimeupdateTimestampupdateTimestampwasNull

Field Detail

curPosBfrWriteback to summary
private int curPosBfrWrite
providerback to summary
private SyncProvider provider

Hides com.sun.rowset.CachedRowSetImpl.provider.

Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.rowset.CachedRowSetImpl.serialVersionUID.

xmlReaderback to summary
private WebRowSetXmlReader xmlReader

The WebRowSetXmlReader object that this WebRowSet object will call when the method WebRowSet.readXml is invoked.

xmlWriterback to summary
private WebRowSetXmlWriter xmlWriter

The WebRowSetXmlWriter object that this WebRowSet object will call when the method WebRowSet.writeXml is invoked.

Constructor Detail

WebRowSetImplback to summary
public WebRowSetImpl() throws SQLException

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.

Exceptions
SQLException:
if an error occurs in configuring the default synchronization providers for relational and XML providers.
WebRowSetImplback to summary
public WebRowSetImpl(Hashtable<K, V> env) throws SQLException

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

Annotations
@SuppressWarnings:rawtypes
Exceptions
SQLException:
if an error occurs in configuring the specified synchronization providers for the relational and XML providers; or if the Hashtanle is null

Method Detail

readObjectback to summary
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException

Hides com.sun.rowset.CachedRowSetImpl.readObject.

This method re populates the resBundle during the deserialization process

readXmlback to summary
public void readXml(Reader reader) throws SQLException

Implements javax.sql.rowset.WebRowSet.readXml.

Reads this WebRowSet object in its XML format.

Exceptions
SQLException:
if a database access error occurs
readXmlback to summary
public void readXml(InputStream iStream) throws SQLException, IOException

Implements javax.sql.rowset.WebRowSet.readXml.

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

Exceptions
SQLException:
if a data source access error occurs
IOException:
if a IO exception occurs
writeXmlback to summary
public void writeXml(ResultSet rs, Writer writer) throws SQLException

Implements javax.sql.rowset.WebRowSet.writeXml.

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.

Exceptions
SQLException:
if an error occurs writing out the rowset contents to XML
writeXmlback to summary
public void writeXml(Writer writer) throws SQLException

Implements javax.sql.rowset.WebRowSet.writeXml.

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

Exceptions
SQLException:
if an error occurs writing out the rowset contents to XML
writeXmlback to summary
public void writeXml(OutputStream oStream) throws SQLException, IOException

Implements javax.sql.rowset.WebRowSet.writeXml.

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

Exceptions
SQLException:
if a datasource access error occurs
IOException:
if an IO exception occurs
writeXmlback to summary
public void writeXml(ResultSet rs, OutputStream oStream) throws SQLException, IOException

Implements javax.sql.rowset.WebRowSet.writeXml.

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.

Exceptions
SQLException:
if a datasource access error occurs
IOException:
if an IO exception occurs