패키지 | mx.data.messages |
클래스 | public class UpdateCollectionMessage |
상속 | UpdateCollectionMessage DataMessage AsyncMessage AbstractMessage Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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.
속성 | 정의 주체 | ||
---|---|---|---|
body : Object
The body of a message contains the specific data that needs to be
delivered to the remote destination. | AbstractMessage | ||
clientId : String
The clientId indicates which MessageAgent sent the message. | AbstractMessage | ||
collectionId : Object
The unique identifier for the collection that was updated. | UpdateCollectionMessage | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
correlationId : String
Provides access to the correlation id of the message. | AsyncMessage | ||
destination : String
The message destination. | AbstractMessage | ||
headers : 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 | ||
identity : 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 | ||
messageId : String
The unique id for the message. | AbstractMessage | ||
operation : 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 | ||
timestamp : Number
Provides access to the time stamp for the message. | AbstractMessage | ||
timeToLive : 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 |
메서드 | 정의 주체 | ||
---|---|---|---|
Creates a new instance of an empty UpdateCollectionMessage. | UpdateCollectionMessage | ||
[정적]
Provides a description of the operation specified. | DataMessage | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Returns true if this is a create operation. | DataMessage | ||
Returns true if this message is both an update and its list
of property names has a length of zero. | DataMessage | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
상수 | 정의 주체 | ||
---|---|---|---|
CLIENT_UPDATE : int = 0 [정적]
Indicates this update collection message was client generated. | UpdateCollectionMessage | ||
SERVER_OVERRIDE : int = 2 [정적]
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 [정적]
Indicates this update collection message was remotely generated and is
based on the current state of the remote sequence. | UpdateCollectionMessage |
collectionId | 속성 |
public var collectionId:Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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 | 속성 |
public var replace:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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 | 속성 |
public var updateMode:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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 unconditionallyUpdateCollectionMessage.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.
UpdateCollectionMessage | () | 생성자 |
public function UpdateCollectionMessage()
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Creates a new instance of an empty UpdateCollectionMessage.
CLIENT_UPDATE | 상수 |
public static const CLIENT_UPDATE:int = 0
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates this update collection message was client generated.
관련 API 요소
SERVER_OVERRIDE | 상수 |
public static const SERVER_OVERRIDE:int = 2
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
관련 API 요소
SERVER_UPDATE | 상수 |
public static const SERVER_UPDATE:int = 1
언어 버전: | ActionScript 3.0 |
제품 버전: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
런타임 버전: | 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.
관련 API 요소
Tue Jun 12 2018, 03:17 PM Z