org.apache.camel.component.salesforce.api.dto.bulk
Class SObject

java.lang.Object
  extended by org.apache.camel.component.salesforce.api.dto.bulk.SObject

public class SObject
extends Object

Java class for sObject complex type.

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

 <complexType name="sObject">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="Id" type="{http://www.force.com/2009/06/asyncapi/dataload}ID"/>
         <any processContents='lax' namespace='http://www.force.com/2009/06/asyncapi/dataload' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Object> any
           
protected  String id
           
protected  String type
           
 
Constructor Summary
SObject()
           
 
Method Summary
 List<Object> getAny()
          Gets the value of the any property.
 String getId()
          Gets the value of the id property.
 String getType()
          Gets the value of the type property.
 void setId(String value)
          Sets the value of the id property.
 void setType(String value)
          Sets the value of the type property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected String type

id

protected String id

any

protected List<Object> any
Constructor Detail

SObject

public SObject()
Method Detail

getType

public String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

getId

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

Returns:
possible object is String

setId

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

Parameters:
value - allowed object is String

getAny

public List<Object> getAny()
Gets the value of the any 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 any property.

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

    getAny().add(newItem);
 

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



Apache Camel