Package javax.sql
Interface RowSetReader
public interface RowSetReader
An interface which provides functionality for a disconnected
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.- See Also:
RowSet
-
Method Summary
Modifier and Type Method Description voidreadData(RowSetInternal theCaller)Reads new data into theRowSet.
-
Method Details
-
readData
Reads new data into theRowSet. The callingRowSetobject must itself implement theRowSetInternalinterface and theRowSetReadermust be registered as a reader on theRowSet.This method adds rows into the calling
RowSet. The reader may invoke any of theRowSet's methods except for theexecutemethod (callingexecutewill cause anSQLExceptionto be thrown). However, when the reader calls theRowSet's methods, no events are sent to listeners - any listeners are informed by the callingRowSet'sexecutemethod once the reader returns from thereadDatamethod.- Parameters:
theCaller- must be the callingRowSetobject, which must have implemented theRowSetInternalinterface.- Throws:
SQLException- if a problem occurs accessing the database or if the reader calls theRowSet.execute()method.- See Also:
RowSetInternal
-