public interface RowSetReader
RowSet
to get data from a database into its rows. The RowSet
calls the
RowSetReader
interface when the RowSet
's execute method is
invoked - a RowSetReader
must first be registered with the RowSet
for this to work.RowSet
Modifier and Type | Method and Description |
---|---|
void |
readData(RowSetInternal theCaller)
Reads new data into the
RowSet . |
void readData(RowSetInternal theCaller) throws SQLException
RowSet
. The calling RowSet
object
must itself implement the RowSetInternal
interface and the
RowSetReader
must be registered as a reader on the
RowSet
.
This method adds rows into the calling RowSet
. The reader may
invoke any of the RowSet
's methods except for the execute
method (calling execute
will cause an SQLException
to be
thrown). However, when the reader calls the RowSet
's methods, no
events are sent to listeners - any listeners are informed by the calling
RowSet
's execute
method once the reader returns from the
readData
method.
theCaller
- must be the calling RowSet
object, which must have
implemented the RowSetInternal
interface.SQLException
- if a problem occurs accessing the database or if the reader
calls the RowSet.execute()
method.RowSetInternal