Package javax.sql
Interface RowSetReader
-
public interface RowSetReaderAn interface which provides functionality for a disconnectedRowSetto get data from a database into its rows. TheRowSetcalls theRowSetReaderinterface when theRowSet's execute method is invoked - aRowSetReadermust first be registered with theRowSetfor this to work.- See Also:
RowSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreadData(RowSetInternal theCaller)Reads new data into theRowSet.
-
-
-
Method Detail
-
readData
void readData(RowSetInternal theCaller) throws SQLException
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
-
-