Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
mx.data 

Conflicts  - AS3 ADEP Data Services

Pacchettomx.data
Classepublic class Conflicts
EreditarietàConflicts Inheritance ArrayList Inheritance EventDispatcher Inheritance 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

The Conflicts class represents a list of conflicts. When conflicts are detected between changes made by a client and those made on the server, a Conflict object is created for each item which contains both the client and server versions of the data involved in that item at any given time.

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.

Proprietà MXML predefinitasource



Proprietà pubbliche
 ProprietàDefinito da
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
  length : int
[override] [sola lettura] The length of the source Array.
Conflicts
  resolved : Boolean
[sola lettura] Indicates if there are any unresolved conflicts in the list.
Conflicts
  source : Array
[override] An Array of Conflict objects.
Conflicts
 Inheriteduid : String
Provides access to the unique id for this list.
ArrayList
Metodi pubblici
 MetodoDefinito da
  
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
 Inherited
addAll(addList:IList):void
Adds a list of items to the current list, placing them at the end of the list in the order they are passed.
ArrayList
 Inherited
addAllAt(addList:IList, index:int):void
Adds a list of items to the current list, placing them at the position index passed in to the function.
ArrayList
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento.
EventDispatcher
 Inherited
Add the specified item to the end of the list.
ArrayList
 Inherited
addItemAt(item:Object, index:int):void
Add the item at the specified index.
ArrayList
 Inherited
Invia un evento nel flusso di eventi.
EventDispatcher
  
If there is an outstanding conflict for the given object, returns that conflict.
Conflicts
 Inherited
getItemAt(index:int, prefetch:int = 0):Object
Get the item at the specified index.
ArrayList
 Inherited
Return the index of the item if it is in the list such that getItemAt(index) == item.
ArrayList
 Inherited
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento.
EventDispatcher
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notify the view that an item has been updated.
ArrayList
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
  
raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):void
This method is used by the DataServiceAdapter implementation when it need to raise a conflict because a change is in conflict with the server version.
Conflicts
 Inherited
Remove all items from the list.
ArrayList
  
Removes all resolved conflicts from this collection.
Conflicts
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Rimuove un listener dall'oggetto EventDispatcher.
EventDispatcher
 Inherited
Removes the specified item from this list, should it exist.
ArrayList
 Inherited
Remove the item at the specified index and return it.
ArrayList
 Inherited
setItemAt(item:Object, index:int):Object
Place the item at the specified index.
ArrayList
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Return an Array that is populated in the same order as the IList implementation.
ArrayList
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
  
[override] Returns a String representation of this Conflicts object.
Conflicts
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
 Inherited
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato.
EventDispatcher
Metodi protetti
 MetodoDefinito da
 Inherited
Called when any of the contained items in the list dispatch an ObjectChange event.
ArrayList
 Inherited
If the item is an IEventDispatcher, watch it for updates.
ArrayList
 Inherited
If the item is an IEventDispatcher, stop watching it for updates.
ArrayList
Eventi
 Evento Riepilogo Definito da
 Inherited[evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR ottiene lo stato di attivazione del sistema operativo ed entra nello stato attivo.EventDispatcher
 InheritedDispatched when the IList has been updated in some way.ArrayList
 Inherited[evento di trasmissione] Inviato quando Flash Player o l'applicazione AIR perde l'attivazione del sistema operativo e sta entrando nello stato inattivo.EventDispatcher
Descrizione delle proprietà

length

proprietà
length:int  [sola lettura] [override]

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 length of the source Array.

Questa proprietà può essere utilizzata come origine per l’associazione di dati. Quando questa proprietà viene modificata, invia l’evento collectionChange .



Implementazione
    override public function get length():int

resolved

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 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.

Questa proprietà può essere utilizzata come origine per l’associazione di dati. Quando questa proprietà viene modificata, invia l’evento propertyChange .



Implementazione
    public function get resolved():Boolean

source

proprietà 
source:Array[override]

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 Conflict objects.



Implementazione
    override public function get source():Array
    override public function set source(value:Array):void
Descrizione della funzione di costruzione

Conflicts

()Funzione di costruzione
public function Conflicts(dataService:ConcreteDataService = null)

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

Constructor.

Parametri
dataService:ConcreteDataService (default = null) — The DataService that caused the conflict.
Descrizione dei metodi

acceptAllClient

()metodo
public function acceptAllClient():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

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.

Elementi API correlati

acceptAllServer

()metodo 
public function acceptAllServer():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

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.

Elementi API correlati

getConflict

()metodo 
public function getConflict(item:Object):Conflict

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 there is an outstanding conflict for the given object, returns that conflict. Otherwise, returns null.

Parametri

item:Object — The object to check for conflicts.

Restituisce
Conflict — A Conflict object if there is a conflict, and null otherwise.

raiseConflict

()metodo 
public function raiseConflict(dataManager:DataManager, cause:DataMessage, serverObject:Object, conflictingProperties:Array):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

This method is used by the DataServiceAdapter implementation when it need to raise a conflict because a change is in conflict with the server version.

Parametri

dataManager:DataManager — The DataManager instance.
 
cause:DataMessage — The DataMessage object that caused the conflict. The cause should be the pending change which is in conflict with the server.
 
serverObject:Object — The value of the server object whose property was to be changed.
 
conflictingProperties:Array — 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.

removeAllResolved

()metodo 
public function removeAllResolved():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 all resolved conflicts from this collection.

toString

()metodo 
override 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 Conflicts object.

Restituisce
String — A String representation of this Conflicts object.




[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.