A JDBC RowSet object holds tabular data in a way that makes it more
flexible and easier to use than a result set. Sun Microsystems has defined five
RowSet interfaces for some of the more popular uses of a
RowSet object. The Java Community Process has produced standard
reference implementations for these five RowSet interfaces.
You can download the JDBC RowSet implementations from the
JDBC Download page
and use these with Java WSDP 1.5. The
JDBC RowSet Tutorial explains
how you can use these reference implementations.
Java WSDP users may be interested in WebRowSet objects, which can
write themselves as XML documents and can also read those XML documents to convert
themselves back to WebRowSet objects. A WebRowSet object
fills a real need by making it easy for Web Services to send and receive data from
a database in the form of an XML document.
In the last chapter in the tutorial, "WebRowSet," you can learn how to:
- Create and populate a
WebRowSet object
- Write a
WebRowSet object to an XML document
- Read data, properties, and metadata into a
WebRowSet object from
an XML document
- Make updates to a
WebRowSet object
- Synchronize data back to the data source
This tutorial uses the same Coffee Break scenario that is used in the
J2EE Tutorial, but offers a new twist. In the original tutorial, the price
list was sent in a message that was an XML document composed using the SAAJ API.
In the "WebRowSet" chapter of the JDBC RowSet Tutorial, you will see how
much easier it is to send the price data using a WebRowSet object,
which can write itself as an XML document with a single method call.