|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.objdb.store.QueryDesc
public class QueryDesc
Description of a query for an object.
ObjectStore.queryObjects()| Constructor Summary | |
|---|---|
QueryDesc(JSONObject template,
OptString collectionName,
OptInteger maxResults)
JSON-driven (and direct) constructor. |
|
QueryDesc(JSONObject template,
String collectionName,
int maxResults)
Direct constructor. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@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.| Method Detail |
|---|
public JSONLiteral encode(EncodeControl control)
encode in interface Encodablecontrol - Encode control determining what flavor of encoding
should be done.
public JSONObject template()
public String collectionName()
public int maxResults()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||