mx.data

# MessageCacheItem - AS3 ADEP Data Services

Package | mx.data
Class | public class MessageCacheItem
Inheritance | MessageCacheItem Object

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

Represents an element of the MessageBatch's items property. Provides the item updated by this change, its unique identifier, and a reference to the DataMessage for details of the change.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | item : Object Returns the item modified in this change. | MessageCacheItem
|  | message : DataMessage The reference to the DataMessage for this change. | MessageCacheItem
|  | uid : String Returns a unique identifier for this item. | MessageCacheItem

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | MessageCacheItem() Constructor. | MessageCacheItem
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Property Detail

### item

property

`item:Object`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

Returns the item modified in this change.

Implementation
`public function get item():Object`
`public function set item(value:Object):void`

### message

property

`public var message:DataMessage`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

The reference to the DataMessage for this change. You can for example access the type of message by looking at the message.operation property.

Note that changing the data in the data message can break the integrity of the system. You can add headers to the DataMessage however to share information with the server.

### uid

property

`uid:String`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

Returns a unique identifier for this item. It is the messageId of the create message if the item has not yet been persisted and assigned a permanent identity by the server. This gets updated after the created item has been created and assigned a new id. For an update collection message which is modifying a filled collection, this returns null. For an update collection message which modifies an association property, it returns the uid of the parent item.

Implementation
`public function get uid():String`
`public function set uid(value:String):void`
Constructor Detail

### MessageCacheItem

()
Constructor

`public function MessageCacheItem()`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Data Services for Java EE 3

Runtime Versions: | Flash Player 9, AIR 1.1

Constructor.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00