What Is a WebRowSet Object? JDBC

The WebRowSet interface extends the CachedRowSet interface and therefore has all of the same capabilities. An implementation of the CachedRowSet interface (which is disconnected and able to operate without a driver) is designed to work especially well with a thin client for passing data in a distributed application or for making a result set scrollable and updatable. Many other RowSet implementations can be designed for other purposes. WebRowSet adds the ability to read and write a rowset in XML format (the ideal format for a web services application). The WebRowSet interface is also a very interesting object from the metadata point of view, because when you convert it to XML, there is a complete section on metadata.

A WebRowSetImpl object uses a WebRowSetXmlReader object to read a rowset in XML format and a WebRowSetXmlWriter object to write a rowset in XML format. The XML version contains a WebRowSetImpl object’s metadata as well as its data.

The schema definition describes the internal data of a RowSet object in three distinct areas:

  • Properties: These properties describe the standard synchronization provider properties in addition to the more general RowSet properties.
  • Metadata: This area describes the metadata associated with the tabular structure governed by a WebRowSet object. The metadata described is closely aligned with the metadata accessible in the underlying java.sql.ResultSet interface.
  • Data: This area describes the original data (the state of data since the last population or last synchronization of the WebRowSet object) and the current data. By keeping track of the delta between the original data and the current data, a WebRowSet maintains the ability to synchronize changes in its data back to the originating data source.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

JDBC Topics