Packagecom.salesforce
Classpublic class AIRConnection
InheritanceAIRConnection Inheritance Connection Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
 InheritedapplicationDomain : String
Host and Domain name parsed from the server url, or localhost
Connection
 InheritedapplicationServerName : String
Server name parsed from the web services endpoint
Connection
 InheritedapplicationUrl : String
URL web services endpoint, set in the login process
Connection
  autoSync : Boolean
AIRConnection
 InheritedbatchSize : Number
Change the default size of the batches returned from Query() and QueryMore(), the minimum size is 200, the maximum size is 2000 the system will also reserve the right to return other sizes, this is a suggestion.
Connection
 InheritedloginResult : LoginResult
Connection
 Inheritedprotocol : String
protocol to use, can be set to http, defaults to https
Connection
 InheritedserverUrl : String
Set in the login process by connection.loginWithCredentials() or loginWithSessionId(()
Connection
Public Methods
 MethodDefined by
  
AIRConnection(autoSync:Boolean = true)
AIRConnection
 Inherited
checkStatus(requestIds:Array, callback:IResponder):void
Connection
 Inherited
convertLead(leadConverts:Array, callback:IResponder):void
to be tested
Connection
 Inherited
create(sobjects:Array, callback:IResponder):void
Create new records in the salesforce database, pass in an array of SObjects, and a responder callback pair of functions
Connection
 Inherited
createObject(customObjects:Array, callback:IResponder):void
Connection
 Inherited
deleteIds(ids:Array, callback:IResponder):void
Delete a list of objects from salesforce.com database, the array contains just the id strings
Connection
 Inherited
deleteObject(customObjects:Array, callback:IResponder):void
Connection
 Inherited
describeGlobal(callback:IResponder):void
returns a list of all valid objects (table names) in the salesforce database, used to check that a desired table exists in a given database
Connection
 Inherited
describeLayout(type:String, recordTypes:Array, callback:IResponder):void
callback receives a complex data class desribing the meta-data used to layout a page for view or edit, you may specify an array of record type IDs to limit the amount of data returned if your object has many fields or record types.
Connection
 Inherited
describeSObject(type:String, callback:IResponder):void
use describeSObjects instead
Connection
 Inherited
describeSObjects(types:Array, callback:IResponder):void
return the object description in detail for one or more salesforce custom or standard objects
Connection
 Inherited
describeTabs(callback:IResponder):void
callback receives a structure describing all installed AppExchange applications for the current connection, including a list of object tabs for each application.
Connection
 Inherited
execute(packageName:String, method:String, args:Array, callback:IResponder, isArray:Boolean = false):void
Used to execute Apex Code packages (Apex Code is currently in developer preview)
Connection
 Inherited
Use this method to determine if a connection has or has not been initialized by loginWithCredentials() or loginWithSessionId() via an scontrol
Connection
 Inherited
getDeleted(sObjectType:String, startDate:Date, endDate:Date, callback:IResponder):void
given a time range, returns a list of records ( of any type) that were deleted in that time window, resulting IDs can be passed into undelete, or used to purge remote systems of records that are deleted in the salesforce system
Connection
 Inherited
getServerTimestamp(callback:IResponder):void
Retrieves the current system timestamp (Greenwich Mean Time (GMT) or Coordinated Universal Time (UTC) time zone) from the API.
Connection
 Inherited
getUpdated(sObjectType:String, startDate:Date, endDate:Date, callback:IResponder):void
list the objects that have been updated by the system in the time windows passed in
Connection
 Inherited
getUserInfo(callback:IResponder):void
Retrieves personal information for the user associated with the current session.
Connection
 Inherited
isSControl():Boolean
used to detect if we are running from inside a SControl on the hosted Apex platform
Connection
 Inherited
login(loginRequest:LoginRequest):void
unified login request, will perform one of loginWithSessionId, or loginWithCredentials depending on the information provided in the request structure
Connection
 Inherited
merge(mergeRequest:MergeRequest, callback:IResponder):void
to be tested
Connection
 Inherited
process(actions:Array, callback:IResponder):void
to be tested
Connection
 Inherited
query(queryString:String, callback:IResponder):void
Query table or table and related tables using Salesforce SOQL language strings, the responder will return the results asynchronously to the callback functions (response,fault)
Connection
 Inherited
queryAll(queryString:String, callback:IResponder):void
this version of query will include in it's scope the recycle bin as well as the live data
Connection
 Inherited
queryMore(queryLocator:Object, callback:IResponder):void
looping portion of the query() queryMore() method for accessing large data sets
Connection
  
refreshCache():void
AIRConnection
 Inherited
resetPassword(userId:String, callback:IResponder):void
Changes a user’s password to a temporary, system-generated value.
Connection
 Inherited
retrieve(fieldList:String, sObjectType:String, ids:Array, callback:IResponder):void
Retrieve a list of sobjects given an array of object ids
Connection
 Inherited
search(searchString:String, callback:IResponder):void
search for objects in one or more tables within the salesforce database
Connection
 Inherited
sendEmail(messgeList:Array, callback:IResponder):void
send an email or mass email from the system
Connection
 Inherited
setPassword(userId:String, password:String, callback:IResponder):void
Sets the specified user’s password to the specified value.
Connection
  
AIRConnection
 Inherited
undelete(ids:Array, callback:IResponder):void
to be tested
Connection
 Inherited
update(sobjects:Array, callback:IResponder):void
Update existing records in the salesforce database, the array of sobjects must have a valid ID filled in for each record to be updated
Connection
 Inherited
updateObject(customObjects:Array, callback:IResponder):void
Connection
 Inherited
upsert(externalIDFieldName:String, sobjects:Array, callback:IResponder):void
utility function that will perform a create or update depending on the presence of an existing record that matches the provided external key field
Connection
Events
 EventSummaryDefined by
 Inherited Event used to print out the SOAP messages used in the API transport methods Connection
    AIRConnection
    AIRConnection
    AIRConnection
 Inherited Event used internaly to collect responses and pass them back to the responder callbacks Connection
    AIRConnection
    AIRConnection
    AIRConnection
Property detail
autoSyncproperty
public var autoSync:Boolean
Constructor detail
AIRConnection()constructor
public function AIRConnection(autoSync:Boolean = true)Parameters
autoSync:Boolean (default = true)
Method detail
refreshCache()method
public function refreshCache():void
syncPendingQueries()method 
public function syncPendingQueries():void
Event detail
refreshCacheEndevent 
refreshCacheErrorevent  
refreshCacheStartevent  
syncPendingCreatesEndevent  
syncPendingCreatesErrorevent  
syncPendingCreatesStartevent