Paquete | mx.data |
Clase | public class Conflict |
Herencia | Conflict Error Object |
Implementa | IExternalizable |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Propiedad | Definido por | ||
---|---|---|---|
cause : DataMessage [solo lectura]
The DataMessage object that caused the conflict. | Conflict | ||
causedByLocalCommit : Boolean [solo lectura]
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 [solo lectura]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
destination : String [solo lectura]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
errorID : int [solo lectura]
Contiene el número de referencia asociado al mensaje de error concreto. | Error | ||
message : String
Contiene el mensaje asociado al objeto Error. | Error | ||
name : String
Contiene el nombre del objeto Error. | Error | ||
originalObject : Object [solo lectura]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
propertyNames : Array [solo lectura]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
resolved : Boolean [solo lectura]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
serverObject : Object [solo lectura]
The value of the server object whose property was to be changed. | Conflict | ||
serverObjectDeleted : Boolean [solo lectura]
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 [solo lectura]
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 |
Método | Definido por | ||
---|---|---|---|
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 | ||
Devuelve la pila de llamadas de un error en el momento de la construcción del error como una cadena. | Error | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Conflict | |||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Returns a String representation of this Conflict object. | Conflict | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Conflict |
Constante | Definido por | ||
---|---|---|---|
NONE : String = "none" [estática]
Conflict mode constant representing zero conflict detection. | Conflict | ||
OBJECT : String = "object" [estática]
Conflict mode constant representing object level conflict detection. | Conflict | ||
PROPERTY : String = "property" [estática]
Conflict mode constant representing property level conflict detection. | Conflict |
cause | propiedad |
cause:DataMessage
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
Implementación
public function get cause():DataMessage
causedByLocalCommit | propiedad |
causedByLocalCommit:Boolean
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Implementación
public function get causedByLocalCommit():Boolean
clientObject | propiedad |
clientObject:Object
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The state of the client object (whose property was changed) at the time of the conflict.
Implementación
public function get clientObject():Object
destination | propiedad |
destination:String
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The destination for the data service of the item involved in this conflict.
Implementación
public function get destination():String
originalObject | propiedad |
originalObject:Object
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Implementación
public function get originalObject():Object
propertyNames | propiedad |
propertyNames:Array
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Implementación
public function get propertyNames():Array
resolved | propiedad |
resolved:Boolean
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient()
or acceptServer()
method has been
called).
Implementación
public function get resolved():Boolean
Elementos de API relacionados
serverObject | propiedad |
serverObject:Object
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The value of the server object whose property was to be changed.
Implementación
public function get serverObject():Object
serverObjectDeleted | propiedad |
serverObjectDeleted:Boolean
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Implementación
public function get serverObjectDeleted():Boolean
serverObjectReferencedIds | propiedad |
serverObjectReferencedIds:Object
[solo lectura] Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Implementación
public function get serverObjectReferencedIds():Object
acceptClient | () | método |
public function acceptClient():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Ejemplo ( Cómo utilizar este ejemplo )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
acceptServer | () | método |
public function acceptServer():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Ejemplo ( Cómo utilizar este ejemplo )
private function conflictHandler(event:DataConflictEvent):void { if (acceptClientCheck.selected) { event.conflict.acceptClient(); } else { event.conflict.acceptServer(); } }
matches | () | método |
public function matches(otherConflict:Conflict):Boolean
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3.1 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
Parámetros
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | método |
public function readExternal(input:IDataInput):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Parámetros
input:IDataInput |
toString | () | método |
public function toString():String
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflict object.
Valor devueltoString — A String representation of this Conflict object.
|
writeExternal | () | método |
public function writeExternal(output:IDataOutput):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Parámetros
output:IDataOutput |
NONE | Constante |
public static const NONE:String = "none"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | Constante |
public static const OBJECT:String = "object"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | Constante |
public static const PROPERTY:String = "property"
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Tue Jun 12 2018, 02:12 PM Z