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="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>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
done |
protected String |
entityTypeName |
protected String |
nextRecordsUrl |
protected String |
queryLocator |
protected List<SObject> |
records |
protected int |
size |
protected int |
totalSize |
| Constructor and Description |
|---|
QueryResult() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityTypeName()
Gets the value of the entityTypeName property.
|
String |
getNextRecordsUrl()
Gets the value of the nextRecordsUrl property.
|
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.
|
int |
getTotalSize()
Gets the value of the totalSize property.
|
boolean |
isDone()
Gets the value of the done property.
|
void |
setDone(boolean value)
Sets the value of the done property.
|
void |
setEntityTypeName(String value)
Sets the value of the entityTypeName property.
|
void |
setNextRecordsUrl(String value)
Sets the value of the nextRecordsUrl property.
|
void |
setQueryLocator(String value)
Sets the value of the queryLocator property.
|
void |
setSize(int value)
Sets the value of the size property.
|
void |
setTotalSize(int value)
Sets the value of the totalSize property.
|
protected boolean done
protected String entityTypeName
protected String nextRecordsUrl
protected String queryLocator
protected int size
protected int totalSize
public boolean isDone()
public void setDone(boolean value)
public String getEntityTypeName()
Stringpublic void setEntityTypeName(String value)
value - allowed object is
Stringpublic String getNextRecordsUrl()
Stringpublic void setNextRecordsUrl(String value)
value - allowed object is
Stringpublic String getQueryLocator()
Stringpublic void setQueryLocator(String value)
value - allowed object is
Stringpublic List<SObject> getRecords()
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
public int getSize()
public void setSize(int value)
public int getTotalSize()
public void setTotalSize(int value)
Copyright © 2016. All rights reserved.