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

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

The newest version!

package com.sforce.soap.tooling;

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;


/**
 * 

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="entityTypeName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="nextRecordsUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="queryLocator" type="{urn:tooling.soap.sforce.com}QueryLocator"/>
 *         <element name="records" type="{urn:tooling.soap.sforce.com}sObject" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="size" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="totalSize" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "QueryResult", propOrder = { "done", "entityTypeName", "nextRecordsUrl", "queryLocator", "records", "size", "totalSize" }) public class QueryResult { protected boolean done; @XmlElement(required = true) protected String entityTypeName; protected String nextRecordsUrl; @XmlElement(required = true) protected String queryLocator; protected List records; protected int size; protected int totalSize; /** * 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 entityTypeName property. * * @return * possible object is * {@link String } * */ public String getEntityTypeName() { return entityTypeName; } /** * Sets the value of the entityTypeName property. * * @param value * allowed object is * {@link String } * */ public void setEntityTypeName(String value) { this.entityTypeName = value; } /** * Gets the value of the nextRecordsUrl property. * * @return * possible object is * {@link String } * */ public String getNextRecordsUrl() { return nextRecordsUrl; } /** * Sets the value of the nextRecordsUrl property. * * @param value * allowed object is * {@link String } * */ public void setNextRecordsUrl(String value) { this.nextRecordsUrl = 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; } /** * Gets the value of the totalSize property. * */ public int getTotalSize() { return totalSize; } /** * Sets the value of the totalSize property. * */ public void setTotalSize(int value) { this.totalSize = value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy