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

UpdateCollectionMessage  - AS3 ADEP Data Services

Pacchettomx.data.messages
Classepublic class UpdateCollectionMessage
EreditarietàUpdateCollectionMessage Inheritance DataMessage Inheritance AsyncMessage Inheritance AbstractMessage 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

This message is used to establish consistency between the remote sequence and the corresponding local collection. It contains all insert and delete operations that were performed on a collection. Clients send this message when a local collection is updated using the collection API (IListView.removeItemAt(), etc) or the Single Managed Object API (DataService.createItem()). The remote destination sends this message when the remote sequence is updated and items are moved or removed and inserted. This body property contains a list of UpdateCollectionRange objects that indicate just how the collection was modified. Applying the update collection ranges inorder will establish a consistent ordering of the items within the specified collection.



Proprietà pubbliche
 ProprietàDefinito da
 Inheritedbody : Object
The body of a message contains the specific data that needs to be delivered to the remote destination.
AbstractMessage
 InheritedclientId : String
The clientId indicates which MessageAgent sent the message.
AbstractMessage
  collectionId : Object
The unique identifier for the collection that was updated.
UpdateCollectionMessage
 Inheritedconstructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto.
Object
 InheritedcorrelationId : String
Provides access to the correlation id of the message.
AsyncMessage
 Inheriteddestination : String
The message destination.
AbstractMessage
 Inheritedheaders : Object
The headers of a message are an associative array where the key is the header name and the value is the header value.
AbstractMessage
 Inheritedidentity : Object
Provides access to the identity map which defines the unique identity of the item affected by this DataMessage (relevant for create/update/delete but not fill operations).
DataMessage
 InheritedmessageId : String
The unique id for the message.
AbstractMessage
 Inheritedoperation : uint
Provides access to the operation/command of this DataMessage.
DataMessage
  replace : Boolean
Indicates if the entire collection should be replaced by the contents of this message.
UpdateCollectionMessage
 Inheritedtimestamp : Number
Provides access to the time stamp for the message.
AbstractMessage
 InheritedtimeToLive : Number
The time to live value of a message indicates how long the message should be considered valid and deliverable.
AbstractMessage
  updateMode : int
Indicates the state of this update.
UpdateCollectionMessage
Metodi pubblici
 MetodoDefinito da
  
Creates a new instance of an empty UpdateCollectionMessage.
UpdateCollectionMessage
 Inherited
[statico] Provides a description of the operation specified.
DataMessage
 Inherited
Indica se per un oggetto è definita una proprietà specifica.
Object
 Inherited
Returns true if this is a create operation.
DataMessage
 Inherited
Returns true if this message is both an update and its list of property names has a length of zero.
DataMessage
 Inherited
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro.
Object
 Inherited
Indica se la proprietà specificata esiste ed è enumerabile.
Object
 Inherited
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche.
Object
 Inherited
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate.
Object
 Inherited
Returns a string representation of the message.
AbstractMessage
 Inherited
Restituisce il valore di base dell'oggetto specificato.
Object
Costanti pubbliche
 CostanteDefinito da
  CLIENT_UPDATE : int = 0
[statico] Indicates this update collection message was client generated.
UpdateCollectionMessage
  SERVER_OVERRIDE : int = 2
[statico] Indicates this update collection message was client generated and the remote destination determined that it should be reverted on that client.
UpdateCollectionMessage
  SERVER_UPDATE : int = 1
[statico] Indicates this update collection message was remotely generated and is based on the current state of the remote sequence.
UpdateCollectionMessage
Descrizione delle proprietà

collectionId

proprietà
public var collectionId: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 unique identifier for the collection that was updated. For a collection filled with the DataService.fill() method this contains and Array of the parameters specified.

replace

proprietà 
public var replace:Boolean

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 the entire collection should be replaced by the contents of this message. When the number of changes to a remote sequence have reached a tipping point a replace message is generated as an optimization. When true the body property contains an Array of item identities that should replace any existing items.

updateMode

proprietà 
public var updateMode:int

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 the state of this update. The remote destination sends update collection messages to clients with one of three update modes:

  • UpdateCollectionMessage.SERVER_UPDATE - client applies this update collection unconditionally
  • UpdateCollectionMessage.CLIENT_UPDATE - the committing client does not need to process this update collection.
  • UpdateCollectionMessage.SERVER_OVERRIDEN - the remote destination modified the update collection message sent by the client and the committing client must revert this update collection.

Descrizione della funzione di costruzione

UpdateCollectionMessage

()Funzione di costruzione
public function UpdateCollectionMessage()

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

Creates a new instance of an empty UpdateCollectionMessage.

Descrizione delle costanti

CLIENT_UPDATE

Costante
public static const CLIENT_UPDATE:int = 0

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 this update collection message was client generated.

Elementi API correlati

SERVER_OVERRIDE

Costante 
public static const SERVER_OVERRIDE:int = 2

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 this update collection message was client generated and the remote destination determined that it should be reverted on that client. A subsequent update collection message will follow containing the correct values to apply getting the client collection back to a consistent state with the remote one.

Elementi API correlati

SERVER_UPDATE

Costante 
public static const SERVER_UPDATE:int = 1

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 this update collection message was remotely generated and is based on the current state of the remote sequence.

Elementi API correlati





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