public class QueryDesc extends Object implements Encodable
ObjectStore.queryObjects()
Constructor and Description |
---|
QueryDesc(JSONObject template,
OptString collectionName,
OptInteger maxResults)
JSON-driven (and direct) constructor.
|
QueryDesc(JSONObject template,
String collectionName,
int maxResults)
Direct constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
collectionName()
Get the collection for this query.
|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence.
|
int |
maxResults()
Get the result limit for this query.
|
JSONObject |
template()
Get the query template for the queried object(s).
|
@JSONMethod(value={"template","coll","limit"}) public QueryDesc(JSONObject template, OptString collectionName, OptInteger maxResults)
template
- Query template indicating the objects queried.collectionName
- Name of collection to query, or null to take the
configured default.maxResults
- Maximum number of result objects to return, or 0 to
indicate no fixed limit (the default if omitted).public QueryDesc(JSONObject template, String collectionName, int maxResults)
template
- Query template indicating the objects queried.collectionName
- Name of collection to query, or null to take the
configured default.maxResults
- Maximum number of result objects to return, or 0 to
indicate no fixed limit.public JSONLiteral encode(EncodeControl control)
public JSONObject template()
public String collectionName()
public int maxResults()
Copyright © 2017. All rights reserved.