RowSets, represented by the javax.sql.RowSet interface,
is a JavaBean compliant component that encapsulates database access including
the result, or in short an object which encapsulates a set of rows. Outside
of encapsulation, a RowSet object can also be used for the following:
As a JavaBean component to provide a set of mutators
for setting properties, whose values can be accessed by a complementary
set of accessors.
With support for JavaBean style events, RowSet objects
generate events when certain changes occur in the state of the RowSet.
The javax.sql.RowSet
can be implemented as a seperate layer on top of an existing JDBC layer.
The JDBC specification identifies three different implementations of the
javax.sql.RowSet - Cached
RowSets, JDBC RowSets, and Web Rowsets. These implementations are specified
in the sun.jdbc.rowset
package, that is not a part of either the standard API, or the optional
package API.
The rest of the tutorials in this series will focus on
each of the RowSet types and also peer into the design considerations
and implementation aspects that OTN developers applied to seperate sample
applications built around each of these RowSet types.