没有合适的资源?快使用搜索试试~ 我知道了~
通用的hibernate分页,不需修改直接使用的分页代码
资源推荐
资源详情
资源评论
先是一个page类:
package com.leatherstore.other;
public class Page {
// 是否有上一页
private boolean hasPrePage;
//是否有下一页
private boolean hasNextPage;
// 每页的数量
private int everyPage;
// 总页数
private int totalPage;
//当前页
private int currentPage;
// 起始点
private int beginIndex;
// 总记录数
private int totalCount;
//@return totalCount
public int getTotalCount() {
return totalCount;
}
//@param totalCount 要设置的 totalCount
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
//The default constructor
public Page(){
}
// construct the page by everyPage
public Page(int everyPage){
this.everyPage = everyPage;
}
//The whole constructor
public Page(boolean hasPrePage, boolean hasNextPage,
int everyPage, int totalPage,
int currentPage, int beginIndex,int totalCount) {
this.hasPrePage = hasPrePage;
this.hasNextPage = hasNextPage;
this.everyPage = everyPage;
剩余11页未读,继续阅读
资源评论
h1231921
- 粉丝: 0
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功