|
||||||||||
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,
org.springframework.data.domain.Pageable pageable)
Applies the given Pageable to the given Query . |
static Query |
applySorting(Query query,
org.springframework.data.domain.Sort sort)
Applies the given Sort to the Query . |
static Order |
toOrder(org.springframework.data.domain.Sort.Order order)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Query applyPagination(Query query, org.springframework.data.domain.Pageable pageable)
Pageable
to the given Query
. Will do nothing if Pageable
is
null.
query
- pageable
-
public static Query applySorting(Query query, org.springframework.data.domain.Sort sort)
Sort
to the Query
. Will do nothing if Sort
is null.
query
- sort
-
public static Order toOrder(org.springframework.data.domain.Sort.Order order)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |