com.sforce.soap.partner
Class QueryResult

java.lang.Object
  extended by com.sforce.soap.partner.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="done" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="queryLocator" type="{urn:partner.soap.sforce.com}QueryLocator"/>
         <element name="records" type="{urn:sobject.partner.soap.sforce.com}sObject" maxOccurs="unbounded" minOccurs="0"/>
         <element name="size" type="{http://www.w3.org/2001/XMLSchema}int"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  boolean done
           
protected  String queryLocator
           
protected  List<SObject> records
           
protected  int size
           
 
Constructor Summary
QueryResult()
           
 
Method Summary
 String getQueryLocator()
          Gets the value of the queryLocator property.
 List<SObject> getRecords()
          Gets the value of the records property.
 int getSize()
          Gets the value of the size property.
 boolean isDone()
          Gets the value of the done property.
 void setDone(boolean value)
          Sets the value of the done property.
 void setQueryLocator(String value)
          Sets the value of the queryLocator property.
 void setSize(int value)
          Sets the value of the size property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

done

protected boolean done

queryLocator

protected String queryLocator

records

protected List<SObject> records

size

protected int size
Constructor Detail

QueryResult

public QueryResult()
Method Detail

isDone

public boolean isDone()
Gets the value of the done property.


setDone

public void setDone(boolean value)
Sets the value of the done property.


getQueryLocator

public String getQueryLocator()
Gets the value of the queryLocator property.

Returns:
possible object is String

setQueryLocator

public void setQueryLocator(String value)
Sets the value of the queryLocator property.

Parameters:
value - allowed object is String

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


getSize

public int getSize()
Gets the value of the size property.


setSize

public void setSize(int value)
Sets the value of the size property.



Copyright © 2012. All Rights Reserved.