com.sforce.soap.tooling.SOQLResult Maven / Gradle / Ivy
package com.sforce.soap.tooling;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public class SOQLResult implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public SOQLResult() {}
/**
* element : queryError of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private static final com.sforce.ws.bind.TypeInfo queryError__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","queryError","http://www.w3.org/2001/XMLSchema","string",1,1,true);
private boolean queryError__is_set = false;
private java.lang.String queryError;
public java.lang.String getQueryError() {
return queryError;
}
public void setQueryError(java.lang.String queryError) {
this.queryError = queryError;
queryError__is_set = true;
}
/**
* element : queryMetadata of type {urn:tooling.soap.sforce.com}QueryResultMetadata
* java type: com.sforce.soap.tooling.QueryResultMetadata
*/
private static final com.sforce.ws.bind.TypeInfo queryMetadata__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","queryMetadata","urn:tooling.soap.sforce.com","QueryResultMetadata",1,1,true);
private boolean queryMetadata__is_set = false;
private com.sforce.soap.tooling.QueryResultMetadata queryMetadata;
public com.sforce.soap.tooling.QueryResultMetadata getQueryMetadata() {
return queryMetadata;
}
public void setQueryMetadata(com.sforce.soap.tooling.QueryResultMetadata queryMetadata) {
this.queryMetadata = queryMetadata;
queryMetadata__is_set = true;
}
/**
* element : queryResult of type {urn:tooling.soap.sforce.com}MapValue
* java type: com.sforce.soap.tooling.MapValue[]
*/
private static final com.sforce.ws.bind.TypeInfo queryResult__typeInfo =
new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","queryResult","urn:tooling.soap.sforce.com","MapValue",0,-1,true);
private boolean queryResult__is_set = false;
private com.sforce.soap.tooling.MapValue[] queryResult = new com.sforce.soap.tooling.MapValue[0];
public com.sforce.soap.tooling.MapValue[] getQueryResult() {
return queryResult;
}
public void setQueryResult(com.sforce.soap.tooling.MapValue[] queryResult) {
this.queryResult = queryResult;
queryResult__is_set = true;
}
/**
*/
@Override
public void write(javax.xml.namespace.QName __element,
com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
throws java.io.IOException {
__out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
writeFields(__out, __typeMapper);
__out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
}
protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
com.sforce.ws.bind.TypeMapper __typeMapper)
throws java.io.IOException {
__typeMapper.writeString(__out, queryError__typeInfo, queryError, queryError__is_set);
__typeMapper.writeObject(__out, queryMetadata__typeInfo, queryMetadata, queryMetadata__is_set);
__typeMapper.writeObject(__out, queryResult__typeInfo, queryResult, queryResult__is_set);
}
@Override
public void load(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__typeMapper.consumeStartTag(__in);
loadFields(__in, __typeMapper);
__typeMapper.consumeEndTag(__in);
}
protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
__in.peekTag();
if (__typeMapper.verifyElement(__in, queryError__typeInfo)) {
setQueryError(__typeMapper.readString(__in, queryError__typeInfo, java.lang.String.class));
}
__in.peekTag();
if (__typeMapper.verifyElement(__in, queryMetadata__typeInfo)) {
setQueryMetadata((com.sforce.soap.tooling.QueryResultMetadata)__typeMapper.readObject(__in, queryMetadata__typeInfo, com.sforce.soap.tooling.QueryResultMetadata.class));
}
__in.peekTag();
if (__typeMapper.isElement(__in, queryResult__typeInfo)) {
setQueryResult((com.sforce.soap.tooling.MapValue[])__typeMapper.readObject(__in, queryResult__typeInfo, com.sforce.soap.tooling.MapValue[].class));
}
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[SOQLResult ");
sb.append(" queryError=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(queryError)+"'\n");
sb.append(" queryMetadata=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(queryMetadata)+"'\n");
sb.append(" queryResult=");
sb.append("'"+com.sforce.ws.util.Verbose.toString(queryResult)+"'\n");
sb.append("]\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy