public class PageObject extends Object implements Page
| 构造器和说明 |
|---|
PageObject() |
PageObject(int pageSize,
net.hasor.cobble.function.ESupplier<Integer,SQLException> totalCountSupplier) |
PageObject(int pageSize,
int totalCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCurrentPage()
取当前页号
|
int |
getFirstRecordPosition()
获取本页第一个记录的索引位置
|
int |
getPageNumberOffset()
页码偏移量(例如:从1页作为起始页,可以设置为 1。
|
int |
getPageSize()
获取页大小,默认是 -1 表示无穷大。
|
int |
getTotalCount()
获取记录总数
|
int |
getTotalPage()
获取总页数
|
void |
setCurrentPage(int currentPage)
设置前页号
|
void |
setPageNumberOffset(int pageNumberOffset)
设置页码偏移量(例如:从1页作为起始页,可以设置为 1。
|
void |
setPageSize(int pageSize)
设置分页的页大小
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfirstPage, lastPage, nextPage, previousPage, toPageInfopublic PageObject()
public PageObject(int pageSize,
int totalCount)
public PageObject(int pageSize,
net.hasor.cobble.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()
PagegetPageNumberOffset 在接口中 Pagepublic void setPageNumberOffset(int pageNumberOffset)
PagesetPageNumberOffset 在接口中 Pagepublic int getFirstRecordPosition()
getFirstRecordPosition 在接口中 Pagepublic int getTotalPage()
throws SQLException
getTotalPage 在接口中 PageSQLExceptionpublic int getTotalCount()
throws SQLException
getTotalCount 在接口中 PageSQLExceptionCopyright © 2021. All rights reserved.