All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.dreampie.orm.page.FullPage Maven / Gradle / Ivy

There is a newer version: 1.3.0.RELEASE
Show newest version
package cn.dreampie.orm.page;

import java.util.List;

/**
 * FullPage is the result of Model.fullPaginate(......) or Record.fullPaginate(......)
 */
public class FullPage extends Page {

  private int totalPage;        // total page
  private int totalRow;        // total row

  /**
   * Constructor.
   *
   * @param list       the list of fullPaginate result
   * @param pageNumber the page number
   * @param pageSize   the page size
   * @param totalPage  the total page of fullPaginate
   * @param totalRow   the total row of fullPaginate
   */
  public FullPage(List list, int pageNumber, int pageSize, int totalPage, int totalRow) {
    super(list, pageNumber, pageSize);
    this.totalPage = totalPage;
    this.totalRow = totalRow;
  }

  /**
   * Return total page.
   */
  public int getTotalPage() {
    return totalPage;
  }

  /**
   * Return total row.
   */
  public int getTotalRow() {
    return totalRow;
  }
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy