How do I implement a RowSetReader?

Joe Sam Shirah

The documentation says "It can be implemented in a wide variety of ways..." and is pretty vague about what can actually be done. In general, readData() would obtain or create the data to be loaded, then use CachedRowSet methods to do the actual loading. This would usually mean inserting rows, so the code would move to the insert row, set the column data and insert rows. Then the cursor must be set to to the appropriate position.

For a working code example, see How can I instantiate and load a new CachedRowSet object from a non-JDBC source?