com.sforce.soap.partner
Class Upsert

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

public class Upsert
extends Object

Java class for anonymous complex type.

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

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="externalIDFieldName" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="sObjects" type="{urn:sobject.partner.soap.sforce.com}sObject" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String externalIDFieldName
           
protected  List<SObject> sObjects
           
 
Constructor Summary
Upsert()
           
 
Method Summary
 String getExternalIDFieldName()
          Gets the value of the externalIDFieldName property.
 List<SObject> getSObjects()
          Gets the value of the sObjects property.
 void setExternalIDFieldName(String value)
          Sets the value of the externalIDFieldName property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

externalIDFieldName

protected String externalIDFieldName

sObjects

protected List<SObject> sObjects
Constructor Detail

Upsert

public Upsert()
Method Detail

getExternalIDFieldName

public String getExternalIDFieldName()
Gets the value of the externalIDFieldName property.

Returns:
possible object is String

setExternalIDFieldName

public void setExternalIDFieldName(String value)
Sets the value of the externalIDFieldName property.

Parameters:
value - allowed object is String

getSObjects

public List<SObject> getSObjects()
Gets the value of the sObjects 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 sObjects property.

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

    getSObjects().add(newItem);
 

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



Copyright © 2012. All Rights Reserved.