| Package | Description |
|---|---|
| com.contentstack.sdk |
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.addParam(String key,
String value)
This method adds key and value to an Entry.
|
Query |
Query.addQuery(String key,
String value)
Add a custom query against specified key.
|
Query |
Query.and(ArrayList<Query> queryObjects)
Combines all the queries together using AND operator
|
Query |
Query.ascending(String key)
Sort the results in ascending order with the given key.
|
Query |
Query.containedIn(String key,
Object[] values)
Add a constraint to the query that requires a particular key's entry to be contained
in the provided array.
|
Query |
Query.count()
Retrieve only count of entries in result.
|
Query |
Query.descending(String key)
Sort the results in descending order with the given key.
|
Query |
Query.except(ArrayList<String> fieldUid)
Specifies list of field uids that would be 'excluded' from the response.
|
Query |
Query.except(String[] fieldUids)
Specifies list of field uids that would be 'excluded' from the response.
|
Query |
Query.exceptWithReferenceUid(ArrayList<String> fieldUid,
String referenceFieldUid)
Specifies an array of 'except' keys that would be 'excluded' in the response.
|
Query |
Query.exists(String key)
Add a constraint that requires, a specified key exists in response.
|
Query |
Query.find(QueryResultsCallBack callback)
Execute a Query and Caches its result (Optional)
|
Query |
Query.findOne(SingleQueryResultCallback callBack)
Execute a Query and Caches its result (Optional)
|
Query |
Query.greaterThan(String key,
Object value)
Add a constraint to the query that requires a particular key entry to be greater than the provided value.
|
Query |
Query.greaterThanOrEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key entry to be greater than or equal to the provided value.
|
Query |
Query.includeContentType()
Include Content Type of all returned objects along with objects themselves.
|
Query |
Query.includeCount()
Retrieve count and data of objects in result
|
Query |
Query.includeOwner()
Include object owner's profile in the objects data.
|
Query |
Query.includeReference(String key)
Add a constraint that requires a particular reference key details.
|
Query |
Query.includeSchema()
Deprecated.
|
Query |
Query.language(Language language)
Set
Language instance. |
Query |
Query.lessThan(String key,
Object value)
Add a constraint to the query that requires a particular key entry to be less than the provided value.
|
Query |
Query.lessThanOrEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key entry to be less than or equal to the provided value.
|
Query |
Query.limit(int number)
A limit on the number of objects to return.
|
Query |
Query.notContainedIn(String key,
Object[] values)
Add a constraint to the query that requires a particular key entry's
value not be contained in the provided array.
|
Query |
Query.notEqualTo(String key,
Object value)
Add a constraint to the query that requires a particular key's
entry to be not equal to the provided value.
|
Query |
Query.notExists(String key)
Add a constraint that requires, a specified key does not exists in response.
|
Query |
Query.only(String[] fieldUid)
Specifies an array of 'only' keys in BASE object that would be 'included' in the response.
|
Query |
Query.onlyWithReferenceUid(ArrayList<String> fieldUid,
String referenceFieldUid)
Specifies an array of 'only' keys that would be 'included' in the response.
|
Query |
Query.or(ArrayList<Query> queryObjects)
Add a constraint to fetch all entries which satisfy any queries.
|
Query |
ContentType.query()
Represents a
Query. |
Query |
Query.regex(String key,
String regex)
Add a regular expression constraint for finding string values that match the provided regular expression.
|
Query |
Query.regex(String key,
String regex,
String modifiers)
Add a regular expression constraint for finding string values that match the provided regular expression.
|
Query |
Query.removeQuery(String key)
Remove provided query key from custom query if exist.
|
Query |
Query.search(String value)
This method provides only the entries matching the specified value.
|
Query |
Query.skip(int number)
The number of objects to skip before returning any.
|
Query |
Query.tags(String[] tags)
Include tags with which to search entries.
|
Query |
Query.where(String key,
Object value)
Add a constraint to fetch all entries that contains given value against specified key
|
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.and(ArrayList<Query> queryObjects)
Combines all the queries together using AND operator
|
Query |
Query.or(ArrayList<Query> queryObjects)
Add a constraint to fetch all entries which satisfy any queries.
|
Copyright © 2019 Contentstack. All rights reserved.