com.sforce.soap.partner
Class Upsert

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

public class Upsert
extends java.lang.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  java.lang.String externalIDFieldName
           
protected  java.util.List<SObject> sObjects
           
 
Constructor Summary
Upsert()
           
 
Method Summary
 java.lang.String getExternalIDFieldName()
          Gets the value of the externalIDFieldName property.
 java.util.List<SObject> getSObjects()
          Gets the value of the sObjects property.
 void setExternalIDFieldName(java.lang.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 java.lang.String externalIDFieldName

sObjects

protected java.util.List<SObject> sObjects
Constructor Detail

Upsert

public Upsert()
Method Detail

getExternalIDFieldName

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

Returns:
possible object is String

setExternalIDFieldName

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

Parameters:
value - allowed object is String

getSObjects

public java.util.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 © 2010. All Rights Reserved.