DEVFYI - Developer Resource - FYI

How does a custom RowSetReader get called from a CachedRowSet?

JDBC Interview Questions and Answers


(Continued from previous question...)

How does a custom RowSetReader get called from a CachedRowSet?

The Reader must be registered with the CachedRowSet using CachedRowSet.setReader(javax.sql.RowSetReader reader). Once that is done, a call to CachedRowSet.execute() will, among other things, invoke the readData method.

(Continued on next question...)

Other Interview Questions