public interface Query
| Modifier and Type | Interface and Description |
|---|---|
static class |
Query.Type
Defines general query types.
|
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
execute()
Makes a query to the backend.
|
QueryResult |
execute(boolean countTotal)
Makes a query to the backend.
|
QueryResult |
execute(long countUpTo)
Makes a query to the backend.
|
QueryResult execute() throws QueryException
QueryExceptionFilterableQuery#execute(QueryFilter,boolean)}QueryResult execute(boolean countTotal) throws QueryException
The total number of documents can also be retrieved, it is then stored in
the DocumentModelList returned by
QueryResult.getDocumentModels().
countTotal - if true, also count the total number of
documents when no limit/offset is passedQueryExceptionFilterableQuery#execute(QueryFilter,boolean)}QueryResult execute(long countUpTo) throws QueryException
The total number of documents can also be retrieved, it is then stored in
the DocumentModelList returned by
QueryResult.getDocumentModels().
countUpTo - if -1, also count the total number of documents
when no limit/offset is passed. 0, don't count the total number of documents.n, count the total number if there are less than n
documents otherwise set the size to -1.QueryExceptionFilterableQuery#execute(QueryFilter,boolean)}Copyright © 2014 Nuxeo SA. All rights reserved.