org.spring jar包side在哪个包里

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&org.springside.modules.orm中的page类自我解读
//// Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // import java.util.C import java.util.L import mons.lang.StringU public class Page { /*静态变量,用于设置结果是按照正序排列还是反序排列*/public static final String ASC = "asc"; public static final String DESC = "desc"; /*当前页码*/protected int pageNo = 1; /*页面容量*/protected int pageSize = 1; /*orderBy表示通过那个进行排序,比如说:id*/protected String orderBy = /*order是设置以哪种方式进行排序:可以使ASC也可以是DESC*/protected String order = /*只是是否自动计算*/protected boolean autoCount = /*以下2个参数常作为 分页所需的"返回结果"! *///result表示当页面存在的实体类集合。protected List result = Collections.emptyList(); //totalCount表示当前页面总条数。protected long totalCount = -1L; public Page() { } public Page(int pageSize) { this.setPageSize(pageSize); } public Page(int pageSize, boolean autoCount) { this.setPageSize(pageSize); this.setAutoCount(autoCount); } public int getPageNo() { return this.pageNo; } public void setPageNo(int pageNo) { this.pageNo = pageNo; if(pageNo < 1) { this.pageNo = 1; } } public int getPageSize() { return this.pageS } public void setPageSize(int pageSize) { this.pageSize = pageS if(pageSize < 0) { this.pageSize = 1; } } /** * 获得当前页面第一条数据的排列 * @return */public int getFirst() { return (this.pageNo - 1) * this.pageSize + 1; } public String getOrderBy() { return this.orderBy; } public void setOrderBy(String orderBy) { this.orderBy = orderBy; } public boolean isOrderBySetted() { return StringUtils.isNotBlank(this.orderBy) && StringUtils.isNotBlank(this.order); } public String getOrder() { return this. } public void setOrder(String order) { String[] orders = StringUtils.split(StringUtils.lowerCase(order), ','); String[] var6 = int var5 = orders. for(int var4 = 0; var4 < var5; ++var4) { String orderStr = var6[var4]; if(!StringUtils.equals("desc", orderStr) && !StringUtils.equals("asc", orderStr)) { throw new IllegalArgumentException("排序方向" + orderStr + "不是合法值"); } } this.order = StringUtils.lowerCase(order); } public boolean isAutoCount() { return this.autoC } public void setAutoCount(boolean autoCount) { this.autoCount = autoC } public List getResult() { return this. } public void setResult(List result) { this.result = } public long getTotalCount() { return this.totalC } public void setTotalCount(long totalCount) { this.totalCount = totalC } /** * 获取一共有多少页(设置的是总条数) * @return */public long getTotalPages() { if(this.totalCount
0L) { ++ } } } /** * 是否还有下一页 * @return */public boolean isHasNext() { return (long)(this.pageNo + 1) <= this.getTotalPages(); } /** * 得到下一页的页码 * @return */public int getNextPage() { return this.isHasNext()?this.pageNo + 1:this.pageNo; } /** * 是否有上一页 * @return */public boolean isHasPre() { return this.pageNo - 1 >= 1; } /** * 得到上一页页码 * @return */public int getPrePage() { return this.isHasPre()?this.pageNo - 1:this.pageNo; } }对于上述代码需要有几点强调的: 1.Page类本质来讲仅仅是一个辅助类,其中包含的是一些争对分页的辅助数据,具体怎么用,还是需要自己进行处理的。 2.XXX随时补充。。。
最新教程周点击榜
微信扫一扫}

我要回帖

更多关于 spring jar包 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信