code: public List<T> fetchList(int limit) throws SQLException, InstantiationException, IllegalAccessException {
          ArrayList<T> result = new ArrayList<T>();
          if (primitive) {
              for (int i = 0; i < limit; i++) {
                  if (!finished) {
                      result.add(fetchSingleInternal());
                      next();
                  } else {
                      break;
                  }
              }
          } else {
              for (int i = 0; i < limit; i++) {
                  if (!finished) {
                      result.add(fetchSingleInternal());
                      next();
                  } else {
                      break;
                  }
              }
          }
  
          return result;
      }
docs: Fetches limited list of entities.
  
  @param limit Maximum amount of entities to fetch.
  @return List of fetched entities.
  @throws SQLException
  @throws InstantiationException
  @throws IllegalAccessException