public class Query extends Object
Constructor and Description |
---|
Query() |
Query(QueryCriteria criteriaDefinition) |
Modifier and Type | Method and Description |
---|---|
Query |
addCriteria(QueryCriteria criteriaDefinition) |
void |
appendSkipAndLimit(StringBuilder sb) |
void |
appendSort(StringBuilder sb) |
void |
appendWhere(StringBuilder sb) |
String |
export() |
Query |
limit(int limit)
Limit the number of returned documents to
limit . |
Query |
skip(long skip)
Set number of documents to skip before returning results.
|
Query |
with(Pageable pageable)
Sets the given pagination information on the
Query instance. |
Query |
with(Sort sort)
|
public Query()
public Query(QueryCriteria criteriaDefinition)
public Query addCriteria(QueryCriteria criteriaDefinition)
public Query skip(long skip)
skip
- public Query limit(int limit)
limit
.limit
- public Query with(Pageable pageable)
Query
instance. Will transparently set skip
and
limit
as well as applying the Sort
instance defined with the Pageable
.pageable
- public void appendSkipAndLimit(StringBuilder sb)
public void appendSort(StringBuilder sb)
public void appendWhere(StringBuilder sb)
public String export()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.