
com.quhaodian.data.core.Paginable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discover-hibernate-common Show documentation
Show all versions of discover-hibernate-common Show documentation
discover-hibernate_common is a lib for hibernate
package com.quhaodian.data.core;
/**
* 分页接口
*/
public interface Paginable {
/**
* 总记录数
*
* @return
*/
int getTotalCount();
/**
* 总页数
*
* @return
*/
int getTotalPage();
/**
* 每页记录数
*
* @return
*/
int getPageSize();
/**
* 当前页号
*
* @return
*/
int getPageNo();
/**
* 是否第一页
*
* @return
*/
boolean isFirstPage();
/**
* 是否最后一页
*
* @return
*/
boolean isLastPage();
/**
* 返回下页的页号
*/
int getNextPage();
/**
* 返回上页的页号
*/
int getPrePage();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy