Paket | mx.data |
Klass | public class Conflict |
Arv | Conflict Error Object |
Implementerar | IExternalizable |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Egenskap | Definieras med | ||
---|---|---|---|
cause : DataMessage [skrivskyddad]
The DataMessage object that caused the conflict. | Conflict | ||
causedByLocalCommit : Boolean [skrivskyddad]
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 [skrivskyddad]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
destination : String [skrivskyddad]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
errorID : int [skrivskyddad]
Innehåller referensnumret som är associerat med det specifika felmeddelandet. | Error | ||
message : String
Innehåller meddelandet som är associerat med Error-objektet. | Error | ||
name : String
Innehåller namnet på Error-objektet. | Error | ||
originalObject : Object [skrivskyddad]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
propertyNames : Array [skrivskyddad]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
resolved : Boolean [skrivskyddad]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
serverObject : Object [skrivskyddad]
The value of the server object whose property was to be changed. | Conflict | ||
serverObjectDeleted : Boolean [skrivskyddad]
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 [skrivskyddad]
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 |
Metod | Definieras med | ||
---|---|---|---|
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 | ||
Returnerar anropsstacken för ett fel när felet byggs upp som en sträng. | Error | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Conflict | |||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returns a String representation of this Conflict object. | Conflict | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Conflict |
Konstant | Definieras med | ||
---|---|---|---|
NONE : String = "none" [statisk]
Conflict mode constant representing zero conflict detection. | Conflict | ||
OBJECT : String = "object" [statisk]
Conflict mode constant representing object level conflict detection. | Conflict | ||
PROPERTY : String = "property" [statisk]
Conflict mode constant representing property level conflict detection. | Conflict |
cause | egenskap |
cause:DataMessage
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
Implementering
public function get cause():DataMessage
causedByLocalCommit | egenskap |
causedByLocalCommit:Boolean
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Implementering
public function get causedByLocalCommit():Boolean
clientObject | egenskap |
clientObject:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The state of the client object (whose property was changed) at the time of the conflict.
Implementering
public function get clientObject():Object
destination | egenskap |
destination:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The destination for the data service of the item involved in this conflict.
Implementering
public function get destination():String
originalObject | egenskap |
originalObject:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Implementering
public function get originalObject():Object
propertyNames | egenskap |
propertyNames:Array
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Implementering
public function get propertyNames():Array
resolved | egenskap |
resolved:Boolean
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient()
or acceptServer()
method has been
called).
Implementering
public function get resolved():Boolean
Relaterade API-element
serverObject | egenskap |
serverObject:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The value of the server object whose property was to be changed.
Implementering
public function get serverObject():Object
serverObjectDeleted | egenskap |
serverObjectDeleted:Boolean
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Implementering
public function get serverObjectDeleted():Boolean
serverObjectReferencedIds | egenskap |
serverObjectReferencedIds:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Implementering
public function get serverObjectReferencedIds():Object
acceptClient | () | metod |
public function acceptClient():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Exempel ( Så här använder du exemplet )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
acceptServer | () | metod |
public function acceptServer():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | 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.
Exempel ( Så här använder du exemplet )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
matches | () | metod |
public function matches(otherConflict:Conflict):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
Parametrar
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | metod |
public function readExternal(input:IDataInput):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
input:IDataInput |
toString | () | metod |
public function toString():String
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflict object.
ReturnerarString — A String representation of this Conflict object.
|
writeExternal | () | metod |
public function writeExternal(output:IDataOutput):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
output:IDataOutput |
NONE | Konstant |
public static const NONE:String = "none"
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | Konstant |
public static const OBJECT:String = "object"
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | Konstant |
public static const PROPERTY:String = "property"
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Tue Jun 12 2018, 01:40 PM Z