docs: @Override
      public boolean next() throws SQLException {
          checkClosed();
          if (cursorPosition == Position.afterLast || table.getActiveRowIndex() == rowCount - 1) {
              cursorPosition = Position.afterLast;
              return false;
          }
          if (cursorPosition == Position.beforeFirst) {
              cursorPosition = Position.middle;
          }
          try {
              return table.advanceRow();
          } catch (Exception x) {
              throw SQLError.get(x);
          }
      }