| Package | mx.data |
| Class | public class Conflicts |
You cannot commit any changes until all conflicts are resolved.
At that point, the DataService.commit() method will call remove
all of these conflicts.
If you attempt to resolve a Conflict which was already resolved,
an error is thrown.
An instance of this class can be accessed from the
DataService.conflicts property.
Because this class implements IList it can be used with an
ArrayCollection.list property,
allowing it to participate as a data source for user interface controls and data binding.
| Property | Defined By | ||
|---|---|---|---|
| length : int [read-only]
The length of the source Array. | Conflicts | ||
| resolved : Boolean [read-only]
Indicates if there are any unresolved conflicts in the list. | Conflicts | ||
| source : Array [read-only]
An Array of Conflict objects. | Conflicts | ||
| Method | Defined By | ||
|---|---|---|---|
Conflicts(dataService:ConcreteDataService = null)
Constructor. | Conflicts | ||
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method. | Conflicts | ||
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method. | Conflicts | ||
If there is an outstanding conflict for the given object, returns that
conflict. | Conflicts | ||
| length | property |
length:int [read-only]
The length of the source Array.
This property can be used as the source for data binding.
public function get length():int| resolved | property |
resolved:Boolean [read-only]
Indicates if there are any unresolved conflicts in the list.
When this returns true all conflicts have been resolved and
DataService.commit() can be called without an error.
This property can be used as the source for data binding.
public function get resolved():Boolean| source | property |
source:Array [read-only] An Array of Conflict objects.
public function get source():Array| Conflicts | () | Constructor |
public function Conflicts(dataService:ConcreteDataService = null)Constructor.
ParametersdataService:ConcreteDataService (default = null) — The DataService that caused the conflict.
|
| acceptAllClient | () | method |
public function acceptAllClient():void
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method.
Once completed this method will clear all of the conflicts in the list.
Calling this method will requeue each local change and update all
property values such that a subsequent call to
DataService.commit() should succeed, allowing these changes
to override the current ones.
See also
| acceptAllServer | () | method |
public function acceptAllServer():void
This is a convenience method that iterates all of the conflicts within
this list and invokes the Conflict.acceptClient() method.
Once completed this method will clear all of the conflicts in the list.
Calling this method removes the conflicting local change and applies the
property values found on each Conflict.serverObject within
the list to each related local item.
See also
| getConflict | () | method |
public function getConflict(item:Object):ConflictIf there is an outstanding conflict for the given object, returns that conflict. Otherwise, returns null.
Parameters
item:Object — The object to check for conflicts.
|
Conflict — A Conflict object if there is a conflict, and null otherwise.
|
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/common/langref/mx/data/Conflicts.html