Class SObject

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

public final class SObject extends Object
SObject
Since:
160
Author:
mcheenath
  • Constructor Details

    • 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 Details

    • 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)
    • getFieldReferences

      public Map<String,SObject> getFieldReferences()
    • write

      public void write(XmlOutputStream out) throws IOException
      Example: <?xml version="1.0" encoding="UTF-8"?> XYZ BLAH 123456 ParentEntityType foo@bar.com
      Parameters:
      out -
      Throws:
      IOException
    • write

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