Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The DataServiceAdapter class is the abstract base class which you use to
implement a new type of DataService implementation.
asyncRequest:AsyncRequest
[read-only]
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Contains an AsyncRequest object that is used to handle
all DataService operations.
By overriding the AsyncRequest.invoke()
method,
you can intercept managed requests. The AsyncRequest class also exposes
the various methods for determining if the service is connected or disconnected.
Implementation public function get asyncRequest():AsyncRequest
connected:Boolean
[read-only]
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns true when this service adapter is connected to its source. Should
be overridden by subclasses.
Implementation public function get connected():Boolean
public var dataStore:DataStore
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Contains an object of type mx.data.DataStore.
The DataStore manages the set of incoming and outgoing changes
for one or more DataServices, which may have references between
them. When you commit on a DataStore, all of the pending changes
of each DataService using that DataStore are committed.
By default, a DataService shares the same
DataStore with other DataServices if they have managed association properties
and share the same set of channels. If you are sharing DataStores, a commit
call on one DataService commits changes for all DataServices using that
data store. This preserves the order of operations in case there are dependencies
between the changes in your uncommitted batches.
serializeAssociations:Boolean
[read-only]
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
If true
then Data Management Service wraps the items into a serialization
descriptor which excludes the associations.
The MessagingDataServiceAdapter uses this approach for sending associations.
The RPCDataServiceAdapter does not.
Implementation public function get serializeAssociations():Boolean
See also
throwUnhandledFaults:Boolean
[read-only]
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
If true
then the data manager throw an error
if there is a fault with no listeners on the data manager.
For RPC services, those errors are proxied to listeners on
the service and so throwing the error is not appropriate.
Implementation public function get throwUnhandledFaults():Boolean
public function getDataManager(destination:String):DataManager
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Finds the data manager for a specified destination.
Parameters
| destination:String — The destination.
|
Returns | DataManager — The DataManager object for the destination.
|
public function getDataServiceAdapter(destination:String):DataServiceAdapter
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Looks up an associated data service adapter. This implementation chooses the
adapter for the destination provided.
Parameters
| destination:String — The destination.
|
Returns