Class QueryResult


  • public class QueryResult
    extends Object
    • Field Detail

      • receiveJson

        protected org.json.JSONObject receiveJson
      • schemaArray

        protected org.json.JSONArray schemaArray
      • contentObject

        protected org.json.JSONObject contentObject
      • count

        protected int count
      • resultObjects

        protected List<Entry> resultObjects
    • Constructor Detail

      • QueryResult

        public QueryResult()
    • Method Detail

      • getResultObjects

        public List<Entry> getResultObjects()
        Returns:
        List of Entry objects list.

        Example :
         List<Entry> list = queryResultObject.getResultObjects();
      • getCount

        public int getCount()
        Returns count of objects available.
        Note : To retrieve this data, Query.includeCount() or Query.count() should be added in Query while querying.
        Returns:
        int count

        Example :
         int count = queryResultObject.getCount();
      • getSchema

        public org.json.JSONArray getSchema()
        Returns class's schema if call to fetch schema executed successfully.
        Returns:
        JSONArray schema Array

        Example :
         JSONArray schemaArray = queryResultObject.getSchema();
      • getContentType

        public org.json.JSONObject getContentType()
        Returns class's content type if call to fetch contentType executed successfully.
        Returns:
        JSONObject contentObject

        Example :
         JSONObject contentObject = queryResultObject.getContentType();
      • setJSON

        protected void setJSON​(org.json.JSONObject jsonobject,
                               List<Entry> objectList)