套件 | mx.data |
類別 | public class DataServiceAdapter |
繼承 | DataServiceAdapter Object |
子類別 | MessagingDataServiceAdapter, RPCDataServiceAdapter |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
asyncRequest : AsyncRequest [唯讀]
Contains an AsyncRequest object that is used to handle
all DataService operations. | DataServiceAdapter | ||
connected : Boolean [唯讀]
Returns true when this service adapter is connected to its source. | DataServiceAdapter | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
dataStore : DataStore
Contains an object of type mx.data.DataStore. | DataServiceAdapter | ||
serializeAssociations : Boolean [唯讀]
If true then Data Management Service wraps the items into a serialization
descriptor which excludes the associations. | DataServiceAdapter | ||
throwUnhandledFaults : Boolean [唯讀]
If true then the data manager throw an error
if there is a fault with no listeners on the data manager. | DataServiceAdapter |
方法 | 定義自 | ||
---|---|---|---|
Finds the data manager for a specified destination. | DataServiceAdapter | ||
Looks up an associated data service adapter. | DataServiceAdapter | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
asyncRequest | 屬性 |
asyncRequest:AsyncRequest
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
實作
public function get asyncRequest():AsyncRequest
connected | 屬性 |
dataStore | 屬性 |
public var dataStore:DataStore
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 屬性 |
serializeAssociations:Boolean
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
實作
public function get serializeAssociations():Boolean
相關 API 元素
throwUnhandledFaults | 屬性 |
throwUnhandledFaults:Boolean
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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.
實作
public function get throwUnhandledFaults():Boolean
getDataManager | () | 方法 |
public function getDataManager(destination:String):DataManager
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Finds the data manager for a specified destination.
參數
destination:String — The destination.
|
DataManager — The DataManager object for the destination.
|
getDataServiceAdapter | () | 方法 |
public function getDataServiceAdapter(destination:String):DataServiceAdapter
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Looks up an associated data service adapter. This implementation chooses the adapter for the destination provided.
參數
destination:String — The destination.
|
DataServiceAdapter — The DataServiceAdapter object for the destination.
|
Tue Jun 12 2018, 03:47 PM Z