com.sforce.soap.partner
Class UpsertResult

java.lang.Object
  extended by com.sforce.soap.partner.UpsertResult

public class UpsertResult
extends java.lang.Object

Java class for UpsertResult complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="UpsertResult">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="created" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="errors" type="{urn:partner.soap.sforce.com}Error" maxOccurs="unbounded" minOccurs="0"/>
         <element name="id" type="{urn:partner.soap.sforce.com}ID"/>
         <element name="success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  boolean created
           
protected  java.util.List<Error> errors
           
protected  java.lang.String id
           
protected  boolean success
           
 
Constructor Summary
UpsertResult()
           
 
Method Summary
 java.util.List<Error> getErrors()
          Gets the value of the errors property.
 java.lang.String getId()
          Gets the value of the id property.
 boolean isCreated()
          Gets the value of the created property.
 boolean isSuccess()
          Gets the value of the success property.
 void setCreated(boolean value)
          Sets the value of the created property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setSuccess(boolean value)
          Sets the value of the success property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

created

protected boolean created

errors

protected java.util.List<Error> errors

id

protected java.lang.String id

success

protected boolean success
Constructor Detail

UpsertResult

public UpsertResult()
Method Detail

isCreated

public boolean isCreated()
Gets the value of the created property.


setCreated

public void setCreated(boolean value)
Sets the value of the created property.


getErrors

public java.util.List<Error> getErrors()
Gets the value of the errors 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 errors property.

For example, to add a new item, do as follows:

    getErrors().add(newItem);
 

Objects of the following type(s) are allowed in the list Error


getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

isSuccess

public boolean isSuccess()
Gets the value of the success property.


setSuccess

public void setSuccess(boolean value)
Sets the value of the success property.



Copyright © 2010. All Rights Reserved.