public void setPageSize (int size) throws SQLException {
      if (size < 0) {
         throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.pagesize").toString());
      }
      if (size > getMaxRows() && getMaxRows() != 0) {
         throw new SQLException(resBundle.handleGetObject("cachedrowsetimpl.pagesize1").toString());
      }
      pageSize = size;
   }
This is the setter function for setting the size of the page, which specifies
how many rows have to be retrived at a time.

@param size which is the page size
@throws SQLException if size is less than zero or greater than max rows.
src/main/java/org/replicadb/rowset/StreamingRowSetImpl.java