| Package | mx.data |
| Class | public class ConflictDetector |
| Inheritance | ConflictDetector Object |
It has three methods that are used to determine if a conflict exists when
processing a pushed operation, checkCreate(), checkDelete(), and
checkUpdate().
Each of these methods is called for the corresponding operation with two
parameters, the local and the remote change.
Returning true from these methods indicates to the
DataService that no conflict has occurred.
If you want to customize how conflicts are detected on the client, you can extend this class and augment the behavior as needed to match remote assembler logic.
| Method | Defined by | ||
|---|---|---|---|
|
ConflictDetector(dataService:ConcreteDataService)
Constructs an instance of the default conflict detection mechanism.
| ConflictDetector | ||
|
Called by the DataService when a create
operation is pushed/processed from the remote destination.
| ConflictDetector | ||
|
Called by the DataService when a delete
operation is pushed/processed from the remote destination.
| ConflictDetector | ||
|
Called by the DataService when an update
operation is pushed/processed from the remote destination.
| ConflictDetector | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| ConflictDetector | () | constructor |
public function ConflictDetector(dataService:ConcreteDataService)Constructs an instance of the default conflict detection mechanism.
ParametersdataService:ConcreteDataService — ConcreteDataService reference to the data service
that will use this conflict detector.
|
| checkCreate | () | method |
public function checkCreate(remoteChange:IChangeObject, localChange:IChangeObject):voidCalled by the DataService when a create operation is pushed/processed from the remote destination.
ParametersremoteChange:IChangeObject — IChangeObject representing the remote change being
processed.
|
|
localChange:IChangeObject — IChangeObject representing any local changes made
to the same object referenced by the remoteChange parameter.
This value can be null if no local changes have been made
to the item represented by the remoteChange parameter.
|
| checkDelete | () | method |
public function checkDelete(remoteChange:IChangeObject, localChange:IChangeObject):voidCalled by the DataService when a delete operation is pushed/processed from the remote destination.
ParametersremoteChange:IChangeObject — IChangeObject representing the remote change being
processed.
|
|
localChange:IChangeObject — IChangeObject representing any local changes made
to the same object referenced by the remoteChange parameter.
This value can be null if no local changes have been made
to the item represented by the remoteChange parameter.
|
| checkUpdate | () | method |
public function checkUpdate(remoteChange:IChangeObject, localChange:IChangeObject):voidCalled by the DataService when an update operation is pushed/processed from the remote destination.
ParametersremoteChange:IChangeObject — IChangeObject representing the remote change being
processed.
|
|
localChange:IChangeObject — IChangeObject representing any local changes made
to the same object referenced by the remoteChange parameter.
This value can be null if no local changes have been made
to the item represented by the remoteChange parameter.
|