public class QueryResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.json.JSONObject |
contentObject |
protected int |
count |
protected org.json.JSONObject |
receiveJson |
protected 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. |
List<Entry> |
getResultObjects() |
org.json.JSONArray |
getSchema()
Returns class's schema if call to fetch schema executed successfully.
|
protected void |
setJSON(org.json.JSONObject jsonobject,
List<Entry> objectList) |
protected org.json.JSONObject receiveJson
protected org.json.JSONArray schemaArray
protected org.json.JSONObject contentObject
protected int count
public List<Entry> getResultObjects()
Entry objects list.
List<Entry> list = queryResultObject.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 schemaArray = queryResultObject.getSchema();
public org.json.JSONObject getContentType()
JSONObject contentObject = queryResultObject.getContentType();
Copyright © 2021 Contentstack.. All rights reserved.