public class QueryResult
extends java.lang.Object
Entry
Modifier and Type | Field and Description |
---|---|
protected org.json.JSONObject |
contentObject |
protected int |
count |
protected org.json.JSONObject |
receiveJson |
protected java.util.List<Entry> |
resultObjects |
protected org.json.JSONArray |
schemaArray |
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getContentType()
Returns class's content type if call to fetch contentType executed successfully.
|
int |
getCount()
Returns count of objects available.
Note : To retrieve this data, Query.includeCount() or Query.count() should be added in Query while querying. |
java.util.List<Entry> |
getResultObjects()
Returns
Entry objects list. |
org.json.JSONArray |
getSchema()
Returns class's schema if call to fetch schema executed successfully.
|
protected void |
setJSON(org.json.JSONObject jsonobject,
java.util.List<Entry> objectList) |
protected org.json.JSONObject receiveJson
protected org.json.JSONArray schemaArray
protected int count
protected org.json.JSONObject contentObject
protected java.util.List<Entry> resultObjects
public java.util.List<Entry> getResultObjects()
public int getCount()
Query.includeCount()
or Query.count()
should be added in Query
while querying.
int count = queryResultObject.getCount();
public org.json.JSONArray getSchema()
JSONArray itemsArray = queryResultObject.getSchema();
public org.json.JSONObject getContentType()
JSONObject contentObject = queryResultObject.getContentType();
protected void setJSON(org.json.JSONObject jsonobject, java.util.List<Entry> objectList)