See:
Description
Interface Summary | |
---|---|
CachedRowSet | The interface that all standard implementations of CachedRowSet must implement. |
FilteredRowSet | The standard interface that all standard implementations of FilteredRowSet must implement. |
JdbcRowSet | The standard interface that all standard implementations of JdbcRowSet must implement. |
Joinable | 1.0 Background |
JoinRowSet | The JoinRowSet interface provides a mechanism for combining related data from different RowSet objects into one JoinRowSet object, which represents an SQL JOIN. |
Predicate | The standard interface that provides the framework for all FilteredRowSet objects to describe their filters. |
WebRowSet | The standard interface that all implementations of a WebRowSet must implement. |
Class Summary | |
---|---|
BaseRowSet | An abstract class providing a RowSet object with its basic functionality. |
RowSetMetaDataImpl | Provides implementations for the methods that set and get metadata information about a RowSet object's columns. |
Exception Summary | |
---|---|
RowSetWarning | An extension of SQLException that provides information about database warnings set on RowSet objects. |
Standard interfaces and base classes for JDBC RowSetimplementations. This package contains interfaces and classes that a standard RowSet implementation either implements or extends.
Note: The interface definitions provided in this package form the basis forall compliant JDBC RowSet implementations. Vendors and more advanceddevelopers who intend to provide their own compliant RowSet implementations should pay particular attention to the assertions detailed in specificationinterfaces.
A compliant JDBC RowSet implementation must implement one or more standard interfaces specified in this package and and may extend the BaseRowSet BaseRowSet abstract class provides any RowSet implementationwith its base functionality, including property manipulation and event notificationthat is fully compliant with JavaBeans com.sun.rowset package) usethe BaseRowSet class as a basis for their implementations.
The following table illustrates the features that the BaseRowSetabstract class provides.
Feature
Details
Properties
Provides standard JavaBeans property manipulation mechanisms to allow applications to get and set RowSet command andproperty values. Refer to the documentation of the javax.sql.RowSet interface (available in the JDBC 3.0 specification) for more details onthe standard RowSet properties.
Event notification
Provides standard JavaBeans event notifications to registered event listeners. Refer to the documentation of javax.sql.RowSetEvent interface (available in the JDBC 3.0 specification) formore details on how to register and handle standard RowSet events generatedby compliant implementations.
Setters for a RowSet object's command
Provides a complete set of setter methods for setting RowSet command parameters.
Streams
Provides fields for storing of stream instances in addition to providing a set of constants for stream type designation.
The JdbcRowSet describes a RowSet object that must alwaysbe connected to the originating data source. Implementations of the JdbcRowSetshould ensure that this connection is provided solely by a JDBC driver. Furthermore, RowSet objects that are implementations of the JdbcRowSet interface and are therefore operating in a connected environmentdo not use the SyncFactory to obtain a RowSetReader objector a RowSetWriter object. They can safely rely on the JDBC driver tosupply their needs by virtue of the presence of an underlying updatable and scrollableResultSet implementation.
A disconnected RowSet object, such as a CachedRowSet object, should delegate connection management to a SyncProvider object provided by the SyncFactory. To ensure fully disconnected semantics, all disconnected RowSet objects must ensurethat the original connection made to the data source to populate the RowSet object is closed to permit the garbage collector to recover and release resources. TheSyncProvider object ensures that the critical JDBC properties are maintained in order to re-establish a connection to the data source when a synchronization is required. A disconnected RowSet object should therefore ensure that no extraneous references remain on the Connection object.
The RowsetMetaDataImpl class is a utility class that provides an implementation of the RowSetMetaData interface, supplying standard settermethod implementations for metadata for both connected and disconnected RowSet objects. All implementations are free to use this standardimplementation but are not required to do so.
The RowSetWarning class provides warnings that can be seton RowSet implementations.Similar to
SQLWarning
SQLWarning
should
ensure that this chaining occurs if a warning is generated and also ensure that thewarnings are available via the getRowSetWarnings method defined in eitherthe JdbcRowSet interface or the CachedRowSet interface. After a warning has been retrieved with one of thegetRowSetWarnings methods, the RowSetWarning methodgetNextWarning can be called on it to retrieve any warnings that mightbe chained on it. If a warning is returned, getNextWarning can be calledon it, and so on until there are no more warnings.
The Joinable interface provides both connected and disconnected RowSet objects with the capability to be added to a JoinRowSet object in an SQL JOIN operation.A RowSet object that has implemented the Joinable interface can set a match column, retrieve a match column, or unset a match column.A JoinRowSet object can then use the RowSet object'smatch column as a basis for adding the RowSet object.