|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.domain.AbstractPageRequest
org.springframework.data.querydsl.QPageRequest
public class QPageRequest
Basic Java Bean implementation of Pageable with support for QueryDSL.
| Constructor Summary | |
|---|---|
QPageRequest(int page,
int size)
Creates a new QPageRequest. |
|
QPageRequest(int page,
int size,
com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
Creates a new QPageRequest with the given OrderSpecifiers applied. |
|
QPageRequest(int page,
int size,
QSort sort)
Creates a new QPageRequest with sort parameters applied. |
|
| Method Summary | |
|---|---|
Pageable |
first()
Returns the Pageable requesting the first page. |
QSort |
getSort()
Returns the sorting parameters. |
Pageable |
next()
Returns the Pageable requesting the next Page. |
Pageable |
previous()
Returns the Pageable requesting the previous Page. |
| Methods inherited from class org.springframework.data.domain.AbstractPageRequest |
|---|
equals, getOffset, getPageNumber, getPageSize, hashCode, hasPrevious, previousOrFirst |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QPageRequest(int page,
int size)
QPageRequest. Pages are zero indexed, thus providing 0 for page will return the first
page.
page - size -
public QPageRequest(int page,
int size,
com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
QPageRequest with the given OrderSpecifiers applied.
page - size - orderSpecifiers - must not be null or empty;
public QPageRequest(int page,
int size,
QSort sort)
QPageRequest with sort parameters applied.
page - size - sort - | Method Detail |
|---|
public QSort getSort()
Pageable
public Pageable next()
PageablePageable requesting the next Page.
next in interface Pageablenext in class AbstractPageRequestpublic Pageable previous()
AbstractPageRequestPageable requesting the previous Page.
previous in class AbstractPageRequestpublic Pageable first()
PageablePageable requesting the first page.
first in interface Pageablefirst in class AbstractPageRequest
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||