An article on CachedRowSet (java.sun.com)

Source: Internet
Author: User
Tags object contains documentation interface access
Cache JDBCTM RowSet


This is Early Access release includes three implementations of the JDBCTM RowSet. The RowSet interface provides a serializable, scrollable container for tabular data and may or may is connected to it s data source via a JDBC technology-enabled driver.

A disconnected RowSet object, such as a CachedRowSet object or a Webrowset object, can be thought the as a set of rows that are being cached outside of a data source. Because they are lightweight and serializable, disconnected rowsets can be passed between different components of a Distri buted application, such as Enterprise javabeanstm components. This is one of the most important uses for a RowSet object. The data in a RowSet object is updated and then resynchronized with the underlying data source.

The RowSet Early Access Technology release contains the RowSet jar file, preliminary documentation and code examples. Additional documentation on rowsets are contained in the JDBC 2.0 Optional Package API specification. The Java Developer Connection (SM) also provides on-line access to the RowSet tutorial the chapter of the new JAVATM series C Book.

Early Access Release 4 addresses the following areas:

Fixed problem inserting rows with non-nullable columns
Re-ordered code in writer to allow multiple changes to a single row to is propogated back to a data source
Reader/writer now is only close connects that they create. This change should allow rowsets to is used with connection pool implementations based on JDBC 1.x drivers
Included missing Echolistener.java for example 5
The three JDBCTM RowSet implementations in this release demonstrate some of the many possibilities for implementing the JA Vax.sql.RowSet interface, which is part of the JDBC 2.0 Optional Package API.

The three example implementations in this release are:

CachedRowSet--a rowset that can is used to
Send a set of rows across a network
Send data to a thin client
Add scrollability and updatability to result set data
Webrowset-a extension of cachedrowset that can is used to send a rowset across a network in XML format
Jdbcrowset-a rowset that can is used to encapsulate a JDBCTM driver as a Java beanstm component
Developers cannot redistribute the binary software in commercial. Please, license for terms and conditions.

The file release.notes in the download package contains instructions for installation and setup.

Note:the three RowSet implementations contained in this release are experimental, unsupported technology. The APIs in this release may change before they become a official part of the JAVATM 2 platform. The Sun.jdbc.rowset package, which is contained in this release, is not a committed APIs for the Java platform.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.