org.jiucai.appframework.base.util
类 SqlUtil

java.lang.Object
  继承者 org.jiucai.appframework.base.util.SqlUtil

public class SqlUtil
extends Object


构造方法摘要
SqlUtil()
           
 
方法摘要
static Long getPage(Long pageStart, Long pageSize)
          计算当前页
static Long getPageCount(Long resultSize, Long pageSize)
          计算页数
static Long getPageSize()
          获取每页展示数据记录数
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SqlUtil

public SqlUtil()
方法详细信息

getPageCount

public static final Long getPageCount(Long resultSize,
                                      Long pageSize)
计算页数

参数:
resultSize - 记录数
pageSize - 每页显示的记录数
返回:
总页数

getPage

public static final Long getPage(Long pageStart,
                                 Long pageSize)
计算当前页

参数:
pageStart -
pageSize -
返回:
当前页码

getPageSize

public static final Long getPageSize()
获取每页展示数据记录数

返回:
每页的记录数


Copyright © 2013. All Rights Reserved.