Pakket | mx.data |
Klasse | public class Conflict |
Overerving | Conflict Error Object |
Implementatie | IExternalizable |
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Conflicts are determined by both the remote destination and the local DataService. A conflict detected by the DataService is considered a local conflict. A conflict detected by the remote destination is a remote conflict.
Custom assemblers can generate a remote conflict for any operation when
processing an update.
Local conflicts are determined by the ConflictDetector object.
To customize local conflict detection the ConflictDetector
can be extended and assigned to the DataService.conflictDetector
property.
All conflicts must be resolved before changes can be committed.
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
cause : DataMessage [alleen-lezen]
The DataMessage object that caused the conflict. | Conflict | ||
causedByLocalCommit : Boolean [alleen-lezen]
Contains true if this conflict resulted from commiting a
local change to the remote destination,
and false if it resulted from a pushed change conflicting with a local change. | Conflict | ||
clientObject : Object [alleen-lezen]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
destination : String [alleen-lezen]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
errorID : int [alleen-lezen]
Bevat het referentienummer dat aan het specifieke foutbericht is gekoppeld. | Error | ||
message : String
Bevat het bericht dat aan het object Error is gekoppeld. | Error | ||
name : String
Bevat de naam van het object Error. | Error | ||
originalObject : Object [alleen-lezen]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
propertyNames : Array [alleen-lezen]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
resolved : Boolean [alleen-lezen]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
serverObject : Object [alleen-lezen]
The value of the server object whose property was to be changed. | Conflict | ||
serverObjectDeleted : Boolean [alleen-lezen]
When the serverObject property of this class is null,
this property lets you know whether the server version is null
because the item was deleted on the server (true) or because
the item was removed from a fill that this client is subscribed to (false). | Conflict | ||
serverObjectReferencedIds : Object [alleen-lezen]
If the serverObject has any properties with lazy="true",
returns an Object that stores the referencedId Arrays for
each lazily loaded property, using the property name as the
lookup key value. | Conflict |
Methode | Gedefinieerd door | ||
---|---|---|---|
Requeues the current local changes and updates the property values such
that a subsequent call to DataService.commit() should
succeed, causing these changes to override the previous ones. | Conflict | ||
Removes the conflicting local change and applies the property values
found on the Conflict.serverObject property to the local item. | Conflict | ||
Retourneert de aanroepstack voor een fout op het moment van het bouwen van de fout als tekenreeks. | Error | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Conflict | |||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Returns a String representation of this Conflict object. | Conflict | ||
Retourneert de primitieve waarde van het opgegeven object. | Object | ||
Conflict |
Constante | Gedefinieerd door | ||
---|---|---|---|
NONE : String = "none" [statisch]
Conflict mode constant representing zero conflict detection. | Conflict | ||
OBJECT : String = "object" [statisch]
Conflict mode constant representing object level conflict detection. | Conflict | ||
PROPERTY : String = "property" [statisch]
Conflict mode constant representing property level conflict detection. | Conflict |
cause | eigenschap |
cause:DataMessage
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
Implementatie
public function get cause():DataMessage
causedByLocalCommit | eigenschap |
causedByLocalCommit:Boolean
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Contains true
if this conflict resulted from commiting a
local change to the remote destination,
and false
if it resulted from a pushed change conflicting with a local change.
Implementatie
public function get causedByLocalCommit():Boolean
clientObject | eigenschap |
clientObject:Object
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The state of the client object (whose property was changed) at the time of the conflict.
Implementatie
public function get clientObject():Object
destination | eigenschap |
destination:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The destination for the data service of the item involved in this conflict.
Implementatie
public function get destination():String
originalObject | eigenschap |
originalObject:Object
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
The state of the original client object before its properties were changed, as known at the time of the conflict.
Implementatie
public function get originalObject():Object
propertyNames | eigenschap |
propertyNames:Array
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
An Array of the names of the properties that were
in conflict between the client change and the remote item state.
All property names are String
values and exist in the
public namespace.
Implementatie
public function get propertyNames():Array
resolved | eigenschap |
resolved:Boolean
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient()
or acceptServer()
method has been
called).
Implementatie
public function get resolved():Boolean
Verwante API-elementen
serverObject | eigenschap |
serverObjectDeleted | eigenschap |
serverObjectDeleted:Boolean
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
When the serverObject
property of this class is null,
this property lets you know whether the server version is null
because the item was deleted on the server (true) or because
the item was removed from a fill that this client is subscribed to (false).
This flag will return false if the serverObject
property is not null.
Implementatie
public function get serverObjectDeleted():Boolean
serverObjectReferencedIds | eigenschap |
serverObjectReferencedIds:Object
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
If the serverObject
has any properties with lazy="true"
,
returns an Object that stores the referencedId
Arrays for
each lazily loaded property, using the property name as the
lookup key value.
Implementatie
public function get serverObjectReferencedIds():Object
acceptClient | () | methode |
public function acceptClient():void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Requeues the current local changes and updates the property values such
that a subsequent call to DataService.commit()
should
succeed, causing these changes to override the previous ones.
Voorbeeld ( Hoe dit voorbeeld te gebruiken )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
acceptServer | () | methode |
public function acceptServer():void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Removes the conflicting local change and applies the property values
found on the Conflict.serverObject
property to the local item.
Voorbeeld ( Hoe dit voorbeeld te gebruiken )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
matches | () | methode |
public function matches(otherConflict:Conflict):Boolean
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Runtimeversies: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
Parameters
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | methode |
public function readExternal(input:IDataInput):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Parameters
input:IDataInput |
toString | () | methode |
public function toString():String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflict object.
Geretourneerde waardeString — A String representation of this Conflict object.
|
writeExternal | () | methode |
public function writeExternal(output:IDataOutput):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Parameters
output:IDataOutput |
NONE | Constante |
public static const NONE:String = "none"
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | Constante |
public static const OBJECT:String = "object"
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | Constante |
public static const PROPERTY:String = "property"
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Wed Jun 13 2018, 11:42 AM Z