| Package | com.salesforce.objects |
| Class | public dynamic class SObject |
| Inheritance | SObject mx.utils.ObjectProxy |
| Method | Defined by | ||
|---|---|---|---|
|
SObject(obj:Object)
Generic constructor for a normal SObject, used by an application to create an empty object
or passed to the application with data filled in from an API request.
| SObject | ||
|
decodeBase64(field:String):ByteArray
Method used to decode Body properties returned by the API, normaly transmited as BinaryBase64, these
can be converted back into their original string or image data
| SObject | ||
|
loadSObject(obj:ObjectProxy):void
Loads the SObject object given the SOAP response for connection.query() or connection.retrieve()
| SObject | ||
|
toDebugString():String
return a string representation of this SObject, does pretty printing with new lines
| SObject | ||
|
toXml(sobjectNs:String, name:String, writer:XmlWriter):void
An sobject will consist of key/value pairs and possible related children, this will
render the given SObject as XML, used to prepare the object for SOAP transport
We don't have to worry about including typing info in the soap message.
| SObject | ||
| SObject | () | constructor |
public function SObject(obj:Object)Generic constructor for a normal SObject, used by an application to create an empty object or passed to the application with data filled in from an API request. When the obj is an ObjectProxy, this object is being created from server data (query or retrieve). When the obj is a String, the object is being created from code (new SObject("Account")).
Parametersobj:Object |
| decodeBase64 | () | method |
public function decodeBase64(field:String):ByteArrayMethod used to decode Body properties returned by the API, normaly transmited as BinaryBase64, these can be converted back into their original string or image data
Parametersfield:String — byte array of the decodeed field contents
|
ByteArray — ByteArray
|
| loadSObject | () | method |
public function loadSObject(obj:ObjectProxy):voidLoads the SObject object given the SOAP response for connection.query() or connection.retrieve()
Parametersobj:ObjectProxy |
| toDebugString | () | method |
public function toDebugString():Stringreturn a string representation of this SObject, does pretty printing with new lines
ReturnsString — String
|
| toXml | () | method |
public function toXml(sobjectNs:String, name:String, writer:XmlWriter):voidAn sobject will consist of key/value pairs and possible related children, this will render the given SObject as XML, used to prepare the object for SOAP transport We don't have to worry about including typing info in the soap message. We do have to worry about date formats.
ParameterssobjectNs:String |
|
name:String |
|
writer:XmlWriter |