Package | Description |
---|---|
com.github.pagehelper | |
com.github.pagehelper.dialect | |
com.github.pagehelper.dialect.helper | |
com.github.pagehelper.page | |
com.github.pagehelper.util |
Modifier and Type | Method and Description |
---|---|
Page<E> |
Page.count(Boolean count)
是否执行count查询
|
Page<E> |
Page.countColumn(String columnName)
指定 count 查询列
|
<E> Page<E> |
Page.doSelectPage(ISelect select) |
Page<E> |
Page.pageNum(int pageNum)
设置页码
|
Page<E> |
Page.pageSize(int pageSize)
设置页面大小
|
Page<E> |
Page.pageSizeZero(Boolean pageSizeZero)
当设置为true的时候,如果pagesize设置为0(或RowBounds的limit=0),就不执行分页,返回全部结果
|
Page<E> |
Page.reasonable(Boolean reasonable)
设置合理化
|
Page<E> |
Page.setCount(boolean count) |
Page<E> |
Page.setEndRow(int endRow) |
<E> Page<E> |
Page.setOrderBy(String orderBy) |
Page<E> |
Page.setPageNum(int pageNum) |
Page<E> |
Page.setPages(int pages) |
Page<E> |
Page.setPageSize(int pageSize) |
Page<E> |
Page.setPageSizeZero(Boolean pageSizeZero) |
Page<E> |
Page.setReasonable(Boolean reasonable) |
Page<E> |
Page.setStartRow(int startRow) |
Modifier and Type | Method and Description |
---|---|
String |
PageHelper.getPageSql(String sql,
Page page,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.cache.CacheKey pageKey) |
Modifier and Type | Method and Description |
---|---|
<T> Page<T> |
AbstractHelperDialect.getLocalPage()
获取分页参数
|
Modifier and Type | Method and Description |
---|---|
abstract String |
AbstractHelperDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey)
单独处理分页部分
|
abstract Object |
AbstractHelperDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey)
处理分页参数
|
Modifier and Type | Method and Description |
---|---|
String |
InformixDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
MySqlDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
HsqldbDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
SqlServer2012Dialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
OracleDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
SqlServerDialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
String |
Db2Dialect.getPageSql(String sql,
Page page,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
InformixDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
MySqlDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
HsqldbDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
SqlServer2012Dialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
OracleDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
SqlServerDialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Object |
Db2Dialect.processPageParameter(org.apache.ibatis.mapping.MappedStatement ms,
Map<String,Object> paramMap,
Page page,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey pageKey) |
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Page> |
PageMethod.LOCAL_PAGE |
Modifier and Type | Method and Description |
---|---|
static <T> Page<T> |
PageMethod.getLocalPage()
获取 Page 参数
|
Page |
PageParams.getPage(Object parameterObject,
org.apache.ibatis.session.RowBounds rowBounds)
获取分页参数
|
static <E> Page<E> |
PageMethod.offsetPage(int offset,
int limit)
开始分页
|
static <E> Page<E> |
PageMethod.offsetPage(int offset,
int limit,
boolean count)
开始分页
|
static <E> Page<E> |
PageMethod.startPage(int pageNum,
int pageSize)
开始分页
|
static <E> Page<E> |
PageMethod.startPage(int pageNum,
int pageSize,
boolean count)
开始分页
|
static <E> Page<E> |
PageMethod.startPage(int pageNum,
int pageSize,
boolean count,
Boolean reasonable,
Boolean pageSizeZero)
开始分页
|
static <E> Page<E> |
PageMethod.startPage(int pageNum,
int pageSize,
String orderBy)
开始分页
|
static <E> Page<E> |
PageMethod.startPage(Object params)
开始分页
|
Modifier and Type | Method and Description |
---|---|
protected static void |
PageMethod.setLocalPage(Page page)
设置 Page 参数
|
Modifier and Type | Method and Description |
---|---|
static <T> Page<T> |
PageObjectUtil.getPageFromObject(Object params,
boolean required)
对象中获取分页参数
|
Copyright © 2018. All rights reserved.