|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.document.mongodb.repository.QueryUtils
abstract class QueryUtils
Collection of utility methods to apply sorting and pagination to a
DBCursor
.
Constructor Summary | |
---|---|
private |
QueryUtils()
|
Method Summary | |
---|---|
static Query |
applyPagination(Query query,
Pageable pageable)
Applies the given Pageable to the given Query . |
static Query |
applySorting(Query query,
Sort sort)
Applies the given Sort to the Query . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private QueryUtils()
Method Detail |
---|
public static Query applyPagination(Query query, Pageable pageable)
Pageable
to the given Query
. Will do
nothing if Pageable
is null.
query
- pageable
-
public static Query applySorting(Query query, Sort sort)
Sort
to the Query
. Will do nothing if
Sort
is null.
query
- sort
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |