Description
The current implementation of DataModel.iterator assume getRowCount will return a valid value, but the implementation of ResultSetDataModel returns -1 because the number or rows is unknown in this case, and that's valid.
Instead, isRowAvailable() and setRowIndex() should be used to iterate over the data.