code: @Override
      public boolean hasNext() {
          if (closed)
              return false;
          try {
              if (resultSet == null || selectStatement == null) {
                  init();
              }
              boolean hasMore = resultSet.next();
              if (!hasMore) {
                  close();
              }
              return hasMore;
          } catch (Exception e) {
              close();
              throw e instanceof DaoException ? (DaoException) e : new DaoException(e);
          }
      }
docs: {@inheritDoc}