public class PageBuilder extends Object
| Constructor and Description |
|---|
PageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static PageInfo |
pageInfo(org.springframework.data.domain.Page page)
得到PageInfo,用户返回客户端
|
static org.springframework.data.domain.PageRequest |
pageRequest(Integer pageNum)
获得PageRequest,用于构造分页入参
|
static org.springframework.data.domain.PageRequest |
pageRequest(Integer pageNum,
Integer pageSize)
获得PageRequest,用于构造分页入参
|
static org.springframework.data.domain.PageRequest |
pageRequest(Integer pageNum,
Integer pageSize,
org.springframework.data.domain.Sort.Direction direction,
String... properties)
获得PageRequest,用于构造分页入参
|
static org.springframework.data.domain.PageRequest |
pageRequest(Integer pageNum,
org.springframework.data.domain.Sort.Direction direction,
String... properties)
获得PageRequest,用于构造分页入参
|
public static org.springframework.data.domain.PageRequest pageRequest(Integer pageNum)
pageNum - 第几页,从1开始public static org.springframework.data.domain.PageRequest pageRequest(Integer pageNum, org.springframework.data.domain.Sort.Direction direction, String... properties)
pageNum - 第几页,从1开始direction - 排序方式properties - 排序字段public static org.springframework.data.domain.PageRequest pageRequest(Integer pageNum, Integer pageSize)
pageNum - 第几页,从1开始pageSize - 每页几个public static org.springframework.data.domain.PageRequest pageRequest(Integer pageNum, Integer pageSize, org.springframework.data.domain.Sort.Direction direction, String... properties)
pageNum - 第几页,从1开始pageSize - 每页几个direction - 排序方式properties - 排序字段public static PageInfo pageInfo(org.springframework.data.domain.Page page)
page - spring pageCopyright © 2018 Pivotal Software, Inc.. All rights reserved.