com.sforce.async
Class SObject

java.lang.Object
  extended by com.sforce.async.SObject

public final class SObject
extends Object

SObject

Since:
160
Author:
mcheenath

Constructor Summary
SObject()
           
SObject(int maxDepth)
          Create an SObject with a customized max depth
 
Method Summary
 String getField(String name)
           
 Set<String> getFieldNames()
           
 SObject getFkRef(String fkRef)
           
 int getMaxDepth()
           
 void setField(String name, String value)
           
 void setFieldReference(String name, SObject ref)
           
 void setMaxDepth(int maxDepth)
           
 void write(XmlOutputStream out)
          Example: XYZ BLAH 123456
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SObject

public SObject()

SObject

public SObject(int maxDepth)
Create an SObject with a customized max depth

Parameters:
maxDepth - Allows to configure the max depth of foreign key references
Method Detail

getMaxDepth

public int getMaxDepth()

setMaxDepth

public void setMaxDepth(int maxDepth)

getFieldNames

public Set<String> getFieldNames()

getField

public String getField(String name)

setField

public void setField(String name,
                     String value)

setFieldReference

public void setFieldReference(String name,
                              SObject ref)

getFkRef

public SObject getFkRef(String fkRef)

write

public void write(XmlOutputStream out)
           throws IOException
Example: XYZ BLAH 123456 ParentEntityType foo@bar.com

Parameters:
out -
Throws:
IOException

write

public void write(XmlOutputStream out,
                  int depth)
           throws IOException
Throws:
IOException


Copyright © 2014. All Rights Reserved.