Paket | mx.data |
Sınıf | public class RPCDataManager |
Miras Alma | RPCDataManager DataManager Object |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Varsayılan MXML Özelliğichildren
Özellik | Tanımlayan: | ||
---|---|---|---|
adapter : DataServiceAdapter = null
An instance of a class that controls interaction with the server. | DataManager | ||
allowDynamicPropertyChangesWithCachedData : Boolean
If false (default), then changing the item class dynamic properties when the local store is not empty
causes an error fault when setItemClassDynamicProperties() is called. | RPCDataManager | ||
associations : Array
Array of associations for this data manager's destination. | RPCDataManager | ||
autoCommit : Boolean
Indicates whether changes to the local cache are automatically committed. | DataManager | ||
autoConnect : Boolean
Indicates if this service should attempt to connect for any operations
that require a connection. | DataManager | ||
autoMerge : Boolean
If set to false, when changes are pushed from the remote
destination to the client they are not immediately applied. | DataManager | ||
autoSaveCache : Boolean
You can store the local cache of data and changes to disk. | DataManager | ||
autoSyncEnabled : Boolean [geçersiz kıl]
The RPCDataManager does not support the autoSync property. | RPCDataManager | ||
cacheID : String
Provides access to the cache identifier for this service. | DataManager | ||
children : Array
An array of associations and operations managed by this data manager. | RPCDataManager | ||
commitRequired : Boolean [salt okunur]
Indicates if there are changes that have not been committed and
the commit() method should be called. | DataManager | ||
conflictDetector : ConflictDetector
Provides access to the current implementation being used to
detect conflicts for remote operations pushed to this
DataManager instance. | DataManager | ||
conflicts : Conflicts [salt okunur]
Contains a Conflicts object, which is an ArrayList of
Conflict instances. | DataManager | ||
connected : Boolean [salt okunur]
Indicates if the DataService is connected to the remote destination. | DataManager | ||
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | ||
dataStore : DataStore [geçersiz kıl]
Set the data store for this destination. | RPCDataManager | ||
deleteConflictMode : String = "none"
Set this to 'object' to enable conflict detection on deleteItem()
calls. | RPCDataManager | ||
deleteItemOnRemoveFromFill : Boolean
By default, when you call the removeItemAt() method on a managed filled collection, it
issues a delete item call to the server to physically remove the item. | DataManager | ||
destination : String
The destination for the data service. | RPCDataManager | ||
encryptLocalCache : Boolean
Indicates if offline storage should be encrypted For AIR
clients that use a SQL offline adapter. | DataManager | ||
extendsDestination : String
Name of destination that the destination for this manager extends. | RPCDataManager | ||
fallBackToLocalFill : Boolean
This flag determines whether the application should query against the
local store when it is not connected. | DataManager | ||
hierarchicalEventsDefault : Boolean
Associations optionally list property change events on properties of
the associated instances. | DataManager | ||
identities : String
For objects to be managed by a data manager, they must have one or more properties
that uniquely identify them. | RPCDataManager | ||
identitiesArray : Array [salt okunur]
Provides access to a list of the property names that combine to create
a unique id for objects within the associated destination. | RPCDataManager | ||
ignoreCollectionUpdates : Boolean
Indicates if changes to managed collections should be ignored instead of
being communicated to the server on a commit. | DataManager | ||
indexReferences : Boolean
To tune the speed of your application, set this property to false
if you have a small number of fills or references to items managed by this
DataManager from association properties of other items. | DataManager | ||
isInitialized : Boolean [salt okunur]
Indicates whether the metadata associated with this DataManager instance
is initialized. | DataManager | ||
itemClass : Class
Specified the class of the objects managed by this data manager. | RPCDataManager | ||
itemClassDynamicProperties : Array [salt okunur]
Returns the list of dynamic properties that are associated with the itemClass. | RPCDataManager | ||
managedOperations : Array
The list of managed operations used for this data service. | RPCDataManager | ||
manualSync : ManualSyncConfiguration
Provides access to the ManualSyncConfiguration
instance for each DataManager instance. | DataManager | ||
maxFrequency : uint
Determines the maximum number of messages per second the DataManager instance
can receive. | DataManager | ||
mergeRequired : Boolean [salt okunur]
Indicates whether there are any pending changes that must be
merged. | DataManager | ||
offlineAdapter : DataServiceOfflineAdapter
Returns an object of type mx.data.DataServiceOfflineAdapter. | DataManager | ||
operationsByName : Object
Stores the name to ManagedOperation mapping for all ManagedOperation object. | RPCDataManager | ||
pageSize : int
Provides access to the current page size setting for all collections. | DataManager | ||
pagingEnabled : Boolean [geçersiz kıl] [salt okunur]
The paging enabled setting is toggled at the query ManagedQuery
level when the RPCDataManager is used. | RPCDataManager | ||
priority : int
The default message priority for the messages the DataManager instance sends. | DataManager | ||
propertyNames : String
When using anonymous types, you can specify the list of properties expected
for an object. | RPCDataManager | ||
queries : Object
Stores the name to ManagedQuery mapping for all ManagedQuery objects. | RPCDataManager | ||
requestTimeout : int
Provides access to the request timeout in seconds for an operation. | DataManager | ||
resetCollectionOnFill : Boolean
When the property is true, after the fill operation completes, a RESET event is
sent. | DataManager | ||
resubscribeAttempts : int
Controls the number of times a disconnected DataManager instance attempts to
resubscribe to its destination. | DataManager | ||
resubscribeInterval : int
Controls the delay, in milliseconds, between resubscribe attempts. | DataManager | ||
rpcAdapter : RPCDataServiceAdapter
The RPCDataServiceAdapter defined for this data manager. | RPCDataManager | ||
saveCacheRequired : Boolean [salt okunur]
Indicates if there are changes that have not been saved to the
local cache and the saveCache() method should be called. | DataManager | ||
service : AbstractService
Each RPCDataManager is based on a single AbstractService implementation defined
in this property. | RPCDataManager | ||
subscribed : Boolean [salt okunur]
Indicates if the DataManager instance is subscribed to the remote destination. | DataManager | ||
throwItemPendingErrors : Boolean
Set this property to false if you want to suppress item pending
errors when lazily fetched or unpaged data is accessed. | DataManager | ||
typeProperty : String
Property name of items being managed by this manager that specifies their owning destination. | RPCDataManager | ||
updateConflictMode : String = "none"
Set this to 'object' or 'property' to enable conflict detection on updateItem()
calls. | RPCDataManager |
Yöntem | Tanımlayan: | ||
---|---|---|---|
Constructs an instance of the RPC data manager. | RPCDataManager | ||
Adds a managed operation to the set managed by this data manager. | RPCDataManager | ||
Clears any data stored to disk with a previous call to the
saveCache() method or when the autoSaveCache method was set to
true
| DataManager | ||
Clears the data specified by the passed descriptor from the local store. | DataManager | ||
Commits pending changes for all collections currently managed by
the DataStore instance associated with this DataManager instance. | DataManager | ||
Indicates if there are pending changes for this particular object. | DataManager | ||
Forces a connection attempt by this service to the remote destination. | DataManager | ||
Calls a count method on the remote destination. | DataManager | ||
Requests that the specified item be created in the remote store. | DataManager | ||
Requests that the specified item be deleted from the remote store. | DataManager | ||
Disconnects the DataManager instance's network connection. | DataManager | ||
Executes a query with the provided name and arguments. | DataManager | ||
Fills the specified ListCollectionView (collection) instance based
on the associated fill method of the destination. | DataManager | ||
Fills the specified ListCollectionView (collection) instance based
on the associated fill method of the destination. | DataManager | ||
Executes a query that returns a single item. | DataManager | ||
Returns an ArrayCollection or a single managed object from the
the local store. | DataManager | ||
getCacheDescriptors(view:ListCollectionView, options:uint = 0, item:Object = null):mx.rpc:AsyncToken
Fills the specified ListCollectionView (collection) instance with
CacheDataDescriptor instances. | DataManager | ||
Fills the specified ListCollectionView (collection) instance
with all cache identifiers previously used in the application. | DataManager | ||
Makes an asynchronous request for an item matching the
specified identity. | DataManager | ||
Looks up the supplied item with the given identity. | DataManager | ||
Returns page information for the specified collection. | DataManager | ||
Returns the pending operation in the message cache for the specified
item. | DataManager | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
[geçersiz kıl]
Forces initialization of the DataStore. | RPCDataManager | ||
Returns true if the passed collection is managed by this service. | DataManager | ||
Returns true if the passed collection is using paging features. | DataManager | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Returns true if the supplied range of items is all paged in. | DataManager | ||
Fills the specified ListCollectionView based
on the associated <fill-method> elements based on the data from the
local store. | DataManager | ||
Merges any pending updates into the managed set of objects. | DataManager | ||
Performs pre-initialization configuration steps. | RPCDataManager | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
Refreshes all data managed by this DataManager instance. | DataManager | ||
Refreshes a collection previously filled with the fill method or managed as
a managed association. | DataManager | ||
Releases all managed collections and items for the DataManager instance. | DataManager | ||
releaseCollection(view:ListCollectionView, clear:Boolean = false, copyStillManagedItems:Boolean = true):void
Releases any item within the specified collection from management by
this DataManager instance. | DataManager | ||
releaseItem(item:IManaged, copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):IManaged
Releases the specified item from management by this DataManager instance. | DataManager | ||
Releases a range of items in the collection. | DataManager | ||
Releases the value for a single-valued association. | DataManager | ||
Reverts any uncommitted changes to the specified item. | DataManager | ||
Reverts the changes for any item contained in the specified collection which should
be managed by this DataManager instance. | DataManager | ||
This method saves the current state of the DataManager instance's cache. | DataManager | ||
Indicates if there are pending changes for this particular object
that are not saved to the local cache. | DataManager | ||
Updates the list of dynamic properties that are associated with the itemClass. | RPCDataManager | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Obtains the changed items for all previously executed fills on this data service
(data manager). | DataManager | ||
[statik]
A convenience method to allow the synchronization of all local data: a
synchronizeAllFills() is invoked on each data service (data manager) specified such
that the final result token is completed only when all the individual
synchronizeAllFills() calls are completed. | DataManager | ||
Obtains the changed items that have changed on the server since the
previous time a fill or synchronizeFill was invoked. | DataManager | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
Triggers an update for the specified item. | DataManager | ||
Belirtilen nesnenin temel değerini döndürür. | Object |
Yöntem | Tanımlayan: | ||
---|---|---|---|
[geçersiz kıl]
Queues a fault if this data manager has not yet been initialized. | RPCDataManager |
Olay | Özet | Tanımlayan: | ||
---|---|---|---|---|
The DataConflictEvent.CONFLICT event is dispatched when a conflict is detected between either pending local changes and changes submitted by another client, or when changes submitted by this client are conflicting with those in the remote destination. | RPCDataManager | |||
The DataServiceFaultEvent.FAULT event is dispatched when a service call fails due to an error. | RPCDataManager | |||
The MessageEvent.MESSAGE event is dispatched when the remote destination pushes a notification of a data operation. | DataManager | |||
The PropertyChangeEvent.PROPERTY_CHANGE event is dispatched when a property of this service changes. | RPCDataManager | |||
The ResultEvent.RESULT event is dispatched when a service call successfully returns. | RPCDataManager |
allowDynamicPropertyChangesWithCachedData | özellik |
allowDynamicPropertyChangesWithCachedData:Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.5 |
If false (default), then changing the item class dynamic properties when the local store is not empty
causes an error fault when setItemClassDynamicProperties()
is called.
If true, then the item class dynamic properties are changed in the metadata.
The client programmer is then responsible for updating the local store as needed.
For example, this.dataStore.localStore would give access to the SQLDBCache instance that can
be manipulated as needed.
NOTE: USE THIS AT YOUR OWN RISK!
Uygulama
public function get allowDynamicPropertyChangesWithCachedData():Boolean
public function set allowDynamicPropertyChangesWithCachedData(value:Boolean):void
associations | özellik |
associations:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Array of associations for this data manager's destination.
Uygulama
public function get associations():Array
public function set associations(value:Array):void
autoSyncEnabled | özellik |
autoSyncEnabled:Boolean
[geçersiz kıl] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The RPCDataManager does not support the autoSync
property.
Uygulama
override public function get autoSyncEnabled():Boolean
override public function set autoSyncEnabled(value:Boolean):void
children | özellik |
children:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
An array of associations and operations managed by this data manager.
Uygulama
public function get children():Array
public function set children(value:Array):void
dataStore | özellik |
dataStore:DataStore
[geçersiz kıl] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Set the data store for this destination.
Uygulama
override public function get dataStore():DataStore
override public function set dataStore(value:DataStore):void
deleteConflictMode | özellik |
public var deleteConflictMode:String = "none"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Set this to 'object' to enable conflict detection on deleteItem()
calls. For 'object' mode, any change made to the server version of the object which
conflicts with the version of the object which we started with is considered a conflict.
destination | özellik |
destination:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The destination for the data service.
Uygulama
public function get destination():String
public function set destination(value:String):void
extendsDestination | özellik |
public var extendsDestination:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Name of destination that the destination for this manager extends. Null if the managed destination does not extend any destination.
identities | özellik |
public var identities:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
For objects to be managed by a data manager, they must have one or more properties that uniquely identify them. These properties can be set on the server during the create method, but should not be modified after that point.
identitiesArray | özellik |
identitiesArray:Array
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Provides access to a list of the property names that combine to create a unique id for objects within the associated destination.
Uygulama
public function get identitiesArray():Array
itemClass | özellik |
itemClass:Class
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Specified the class of the objects managed by this data manager.
Uygulama
public function get itemClass():Class
public function set itemClass(value:Class):void
itemClassDynamicProperties | özellik |
itemClassDynamicProperties:Array
[salt okunur] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.5 |
Returns the list of dynamic properties that are associated with the itemClass.
Uygulama
public function get itemClassDynamicProperties():Array
managedOperations | özellik |
managedOperations:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The list of managed operations used for this data service.
Uygulama
public function get managedOperations():Array
public function set managedOperations(value:Array):void
operationsByName | özellik |
public var operationsByName:Object
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Stores the name to ManagedOperation mapping for all ManagedOperation object.
pagingEnabled | özellik |
pagingEnabled:Boolean
[salt okunur] [geçersiz kıl] Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The paging enabled setting is toggled at the query ManagedQuery
level when the RPCDataManager is used.
Uygulama
override public function get pagingEnabled():Boolean
propertyNames | özellik |
public var propertyNames:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
When using anonymous types, you can specify the list of properties expected
for an object. Any properties not fetched by a particular query are then
fetched via the getItem()
call the first time they are accessed.
queries | özellik |
public var queries:Object
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Stores the name to ManagedQuery mapping for all ManagedQuery objects.
rpcAdapter | özellik |
public var rpcAdapter:RPCDataServiceAdapter
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The RPCDataServiceAdapter defined for this data manager. This is an optional property you can set to your own subclass of RPCDataServiceAdapter if you want to customize the handling of one of the managed operations (for example, update, delete, etc.) Note that the same RPCDataServiceAdapter instance cannot be used by more than one data manager.
service | özellik |
service:AbstractService
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Each RPCDataManager is based on a single AbstractService implementation defined in this property.
Uygulama
public function get service():AbstractService
public function set service(value:AbstractService):void
typeProperty | özellik |
public var typeProperty:String
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Property name of items being managed by this manager that specifies their owning destination.
updateConflictMode | özellik |
public var updateConflictMode:String = "none"
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Set this to 'object' or 'property' to enable conflict detection on updateItem()
calls. For 'object' mode, any change made to the server version of the object which
conflicts with the version of the object which we started with is considered a conflict.
With 'property' mode we only consider it a conflict if the property we are updating
has changed since we started editing it and to a different value. In this mode you
can delete an object
RPCDataManager | () | Yapıcı |
public function RPCDataManager()
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructs an instance of the RPC data manager.
addManagedOperation | () | yöntem |
public function addManagedOperation(mop:ManagedOperation):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Adds a managed operation to the set managed by this data manager.
Parametreler
mop:ManagedOperation — managed operation to be added.
|
checkImplementation | () | yöntem |
override protected function checkImplementation():void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Queues a fault if this data manager has not yet been initialized.
initialize | () | yöntem |
override public function initialize():mx.rpc:AsyncToken
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Forces initialization of the DataStore.
Döndürürmx.rpc:AsyncToken — AsyncToken reference to the token that will identify this
operation in a result or fault event dispatched from this service.
|
preInitialize | () | yöntem |
public function preInitialize():void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Performs pre-initialization configuration steps. Throws errors if any configuration problems are encountered.
setItemClassDynamicProperties | () | yöntem |
public function setItemClassDynamicProperties(newProperties:Array):void
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.5 |
Updates the list of dynamic properties that are associated with the itemClass. By default, the list can only be modified if the local cache is empty.
Parametreler
newProperties:Array — Array of DynamicProperty objects describing the properties to set.
|
Atar
Error — error if the local cache is not empty
|
İlgili API Öğeleri
conflict | Olay |
mx.data.events.DataConflictEvent
özellik DataConflictEvent.type =
mx.data.events.DataConflictEvent.CONFLICT
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The DataConflictEvent.CONFLICT
event is dispatched when a
conflict is detected between either pending local changes and changes
submitted by another client, or when changes submitted by this
client are conflicting with those in the remote destination.
Each data manager sends conflict events only for items of this
particular destination.
Use the conflict event on the DataService if you need to handle
conflicts for a set of related destinations at the same time.
CONFLICT
constant defines the value of the type
property
of the event object for a conflict
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
conflict | The Conflict object that holds the conflict that occurred. |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
fault | Olay |
mx.data.events.DataServiceFaultEvent
özellik DataServiceFaultEvent.type =
mx.data.events.DataServiceFaultEvent.FAULT
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The DataServiceFaultEvent.FAULT
event is dispatched when a
service call fails due to an error.
For example, a call to the fill()
method dispatches this event
if the call fails.
You'll also get this event for each item which generates an error as part of
a commit result.
In this case, the DataServiceFaultEvent will contain
the token returned by the commit, but the item and error message strings in
the fault are specific to the item which caused the error.
FAULT
constant defines the value of the type
property
of the event object for a fault
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, calling preventDefault() from the associated token's responder.fault method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
fault | The Fault object that holds the conflict that occurred. |
item | The item that generated the fault. |
identity | The identity of of the item that generated the fault. |
message | The Message associated with this event. |
token | The token that represents the call to the method. Used in the asynchronous completion token pattern. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
propertyChange | Olay |
mx.events.PropertyChangeEvent
özellik PropertyChangeEvent.type =
mx.events.PropertyChangeEvent.PROPERTY_CHANGE
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The PropertyChangeEvent.PROPERTY_CHANGE
event is dispatched
when a property of this service changes.
This happens for the following properties:
commitRequired
mergeRequired
PropertyChangeEvent.PROPERTY_CHANGE
constant defines the value of the
type
property of the event object for a PropertyChange
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | Determined by the constructor; defaults to false. |
cancelable | Determined by the constructor; defaults to false. |
kind | The kind of change; PropertyChangeEventKind.UPDATE or PropertyChangeEventKind.DELETE. |
oldValue | The original property value. |
newValue | The new property value, if any. |
property | The property that changed. |
source | The object that contains the property that changed. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
result | Olay |
mx.rpc.events.ResultEvent
özellik ResultEvent.type =
mx.rpc.events.ResultEvent.RESULT
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The ResultEvent.RESULT
event is dispatched when a service call
successfully returns.
For example a call to fill()
will dispatch this event if the
call is successful.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | true, preventDefault() from the associated token's responder.result method will prevent the service or operation from dispatching this event |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
message | The Message associated with this event. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
result | Result that the RPC call returns. |
token | The token that represents the indiviudal call to the method. Used in the asynchronous completion token pattern. |
Tue Jun 12 2018, 01:09 PM Z