How does a custom RowSetReader get called from a CachedRowSet?

Joe Sam Shirah

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. See How can I instantiate and load a new CachedRowSet object from a non-JDBC source? for a code example.