Class QueryResult


  • public class QueryResult
    extends Object

    Java class for QueryResult complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="QueryResult">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="records" type="{http://www.force.com/2009/06/asyncapi/dataload}sObject" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • QueryResult

        public QueryResult()
    • Method Detail

      • getRecords

        public List<SObject> getRecords()
        Gets the value of the records property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the records property.

        For example, to add a new item, do as follows:

         getRecords().add(newItem);
         

        Objects of the following type(s) are allowed in the list SObject