|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.repository.query.QueryUtils
public abstract class QueryUtils
Collection of utility methods to apply sorting and pagination to a DBCursor
.
Method Summary | |
---|---|
static Query |
applyPagination(Query query,
Pageable pageable)
Deprecated. use Query.with(Pageable) . |
static Query |
applySorting(Query query,
Sort sort)
Deprecated. use Query.with(Pageable) . |
static Order |
toOrder(Sort.Order order)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static Query applyPagination(Query query, Pageable pageable)
Query.with(Pageable)
.
Pageable
to the given Query
. Will do nothing if Pageable
is
null.
query
- must not be null.pageable
-
@Deprecated public static Query applySorting(Query query, Sort sort)
Query.with(Pageable)
.
Sort
to the Query
. Will do nothing if Sort
is null.
query
- must not be null.sort
-
public static Order toOrder(Sort.Order order)
|
Spring Data MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |