All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.partner.QueryResult Maven / Gradle / Ivy


package com.sforce.soap.partner;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.sforce.soap.partner.sobject.SObject;


/**
 * 

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>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "QueryResult", propOrder = { "done", "queryLocator", "records", "size" }) public class QueryResult { protected boolean done; @XmlElement(required = true, nillable = true) protected String queryLocator; @XmlElement(nillable = true) protected List records; protected int size; /** * Gets the value of the done property. * */ public boolean isDone() { return done; } /** * Sets the value of the done property. * */ public void setDone(boolean value) { this.done = value; } /** * Gets the value of the queryLocator property. * * @return * possible object is * {@link String } * */ public String getQueryLocator() { return queryLocator; } /** * Sets the value of the queryLocator property. * * @param value * allowed object is * {@link String } * */ public void setQueryLocator(String value) { this.queryLocator = value; } /** * 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 * {@link SObject } * * */ public List getRecords() { if (records == null) { records = new ArrayList(); } return this.records; } /** * Gets the value of the size property. * */ public int getSize() { return size; } /** * Sets the value of the size property. * */ public void setSize(int value) { this.size = value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy