Reads data from a data source and populates the given
RowSet object with that data.
This method is called by the rowset internally when
the application invokes the method execute
to read a new set of rows.
After clearing the rowset of its contents, if any, and setting
the number of writer calls to 0 , this reader calls
its connect method to make
a connection to the rowset's data source. Depending on which
of the rowset's properties have been set, the connect
method will use a DataSource object or the
DriverManager facility to make a connection to the
data source.
Once the connection to the data source is made, this reader
executes the query in the calling CachedRowSet object's
command property. Then it calls the rowset's
populate method, which reads data from the
ResultSet object produced by executing the rowset's
command. The rowset is then populated with this data.
This method's final act is to close the connection it made, thus
leaving the rowset disconnected from its data source.
Parameters: caller - a RowSet object that has implementedthe RowSetInternal interface and hadthis CachedRowSetXReader object set asits reader throws: SQLException - if there is a database access error, there is aproblem making the connection, or the command property has notbeen set |