code: @SuppressWarnings("unchecked")
      public List<Map>  getPage(int pageNumber) {
  
          if (pageNumber < 1) {
              throw new IllegalArgumentException("minimum page index == 1");
          }
  
          String select = subQuery == null ?
                  dialect.formSelect(tableName, columns, null, orderBys, pageSize, (pageNumber - 1) * pageSize) :
                  dialect.formSelect(tableName, columns, subQuery, orderBys, pageSize, (pageNumber - 1) * pageSize);
  
          currentPage = pageNumber;
          return new DB(dbName).findAll(select, params);
      }
docs: This method will return a list of records for a specific page.
  
  @param pageNumber page number to return. This is indexed at 1, not 0. Any value below 1 is illegal and will
  be rejected.
  @return list of records that match a query make up a "page".