| Pacchetto | mx.data |
| Classe | public class Conflict |
| Ereditarietà | Conflict Error Object |
| Implementa | IExternalizable |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
| Proprietà | Definito da | ||
|---|---|---|---|
| cause : DataMessage [sola lettura]
The DataMessage object that caused the conflict. | Conflict | ||
| causedByLocalCommit : Boolean [sola lettura]
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 [sola lettura]
The state of the client object (whose property was changed)
at the time of the conflict. | Conflict | ||
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
| destination : String [sola lettura]
The destination for the data service of the item involved
in this conflict. | Conflict | ||
![]() | errorID : int [sola lettura]
Contiene il numero di riferimento associato al messaggio di errore specifico. | Error | |
![]() | message : String
Contiene il messaggio associato all'oggetto Error. | Error | |
![]() | name : String
Contiene il nome dell'oggetto Error. | Error | |
| originalObject : Object [sola lettura]
The state of the original client object before its properties
were changed, as known at the time of the conflict. | Conflict | ||
| propertyNames : Array [sola lettura]
An Array of the names of the properties that were
in conflict between the client change and the remote item state. | Conflict | ||
| resolved : Boolean [sola lettura]
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called). | Conflict | ||
| serverObject : Object [sola lettura]
The value of the server object whose property was to be changed. | Conflict | ||
| serverObjectDeleted : Boolean [sola lettura]
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 [sola lettura]
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 | ||
| Metodo | Definito da | ||
|---|---|---|---|
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 | ||
![]() |
Restituisce lo stack di chiamata per un errore al momento della costruzione dell’errore come stringa. | Error | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
Checks if this conflict describes the same item as the item of the given conflict. | Conflict | ||
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
| Conflict | |||
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
Returns a String representation of this Conflict object. | Conflict | ||
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
| Conflict | |||
| Costante | Definito da | ||
|---|---|---|---|
| NONE : String = "none" [statico]
Conflict mode constant representing zero conflict detection. | Conflict | ||
| OBJECT : String = "object" [statico]
Conflict mode constant representing object level conflict detection. | Conflict | ||
| PROPERTY : String = "property" [statico]
Conflict mode constant representing property level conflict detection. | Conflict | ||
cause | proprietà |
cause:DataMessage [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The DataMessage object that caused the conflict.
Implementazione
public function get cause():DataMessagecausedByLocalCommit | proprietà |
causedByLocalCommit:Boolean [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Implementazione
public function get causedByLocalCommit():BooleanclientObject | proprietà |
clientObject:Object [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The state of the client object (whose property was changed) at the time of the conflict.
Implementazione
public function get clientObject():Objectdestination | proprietà |
destination:String [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The destination for the data service of the item involved in this conflict.
Implementazione
public function get destination():StringoriginalObject | proprietà |
originalObject:Object [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Implementazione
public function get originalObject():ObjectpropertyNames | proprietà |
propertyNames:Array [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Implementazione
public function get propertyNames():Arrayresolved | proprietà |
resolved:Boolean [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Indicates whether this Conflict has been resolved
(The acceptClient() or acceptServer() method has been
called).
Implementazione
public function get resolved():BooleanElementi API correlati
serverObject | proprietà |
serverObject:Object [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
The value of the server object whose property was to be changed.
Implementazione
public function get serverObject():ObjectserverObjectDeleted | proprietà |
serverObjectDeleted:Boolean [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Implementazione
public function get serverObjectDeleted():BooleanserverObjectReferencedIds | proprietà |
serverObjectReferencedIds:Object [sola lettura] | Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Implementazione
public function get serverObjectReferencedIds():ObjectacceptClient | () | metodo |
public function acceptClient():void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Esempio ( Come utilizzare questo esempio )
private function conflictHandler(event:DataConflictEvent):void
{
if (acceptClientCheck.selected)
{
event.conflict.acceptClient();
}
else
{
event.conflict.acceptServer();
}
}
acceptServer | () | metodo |
public function acceptServer():void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | 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.
Esempio ( Come utilizzare questo esempio )
private function conflictHandler(event:DataConflictEvent):void
{
if (acceptClientCheck.selected)
{
event.conflict.acceptClient();
}
else
{
event.conflict.acceptServer();
}
}
matches | () | metodo |
public function matches(otherConflict:Conflict):Boolean| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3.1 |
| Versioni runtime: | Flash Player 9, AIR 1.5 |
Checks if this conflict describes the same item as the item of the given conflict.
Parametri
otherConflict:Conflict — the other conflict object to compare.
|
Boolean — true if both conflict objects reference the same managed item.
|
readExternal | () | metodo |
public function readExternal(input:IDataInput):void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Parametri
input:IDataInput |
toString | () | metodo |
public function toString():String| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Returns a String representation of this Conflict object.
RestituisceString — A String representation of this Conflict object.
|
writeExternal | () | metodo |
public function writeExternal(output:IDataOutput):void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Parametri
output:IDataOutput |
NONE | Costante |
public static const NONE:String = "none"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing zero conflict detection.
OBJECT | Costante |
public static const OBJECT:String = "object"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing object level conflict detection.
PROPERTY | Costante |
public static const PROPERTY:String = "property"| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Adobe Digital Enterprise Platform Data Services per Java EE 3 |
| Versioni runtime: | Flash Player 9, AIR 1.1 |
Conflict mode constant representing property level conflict detection.
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate