| 构造器和说明 |
|---|
PageObject() |
PageObject(int pageSize,
net.hasor.utils.function.ESupplier<Integer,SQLException> totalCountSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurrentPage()
取当前页号
|
int |
getFirstRecordPosition()
获取本页第一个记录的索引位置
|
int |
getPageNumberOffset() |
int |
getPageSize()
获取页大小,默认是 -1 标示无穷大。
|
int |
getTotalCount()
获取记录总数
|
int |
getTotalPage()
获取总页数
|
void |
setCurrentPage(int currentPage)
设置前页号
|
void |
setPageNumberOffset(int pageNumberOffset) |
void |
setPageSize(int pageSize)
设置分页的页大小
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstPage, lastPage, nextPage, previousPage, toPageInfopublic PageObject()
public PageObject(int pageSize,
net.hasor.utils.function.ESupplier<Integer,SQLException> totalCountSupplier)
public int getPageSize()
PagegetPageSize 在接口中 Pagepublic void setPageSize(int pageSize)
setPageSize 在接口中 Pagepublic int getCurrentPage()
getCurrentPage 在接口中 Pagepublic void setCurrentPage(int currentPage)
setCurrentPage 在接口中 Pagepublic int getPageNumberOffset()
getPageNumberOffset 在接口中 Pagepublic void setPageNumberOffset(int pageNumberOffset)
setPageNumberOffset 在接口中 Pagepublic int getFirstRecordPosition()
getFirstRecordPosition 在接口中 Pagepublic int getTotalPage()
throws SQLException
getTotalPage 在接口中 PageSQLExceptionpublic int getTotalCount()
throws SQLException
getTotalCount 在接口中 PageSQLExceptionCopyright © 2020–2021. All rights reserved.