Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.data 
MessageCacheItem 
Packagemx.data
Classpublic class MessageCacheItem
InheritanceMessageCacheItem Inheritance Object

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 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
 PropertyDefined By
 Inheritedconstructor : 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
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  uid : String
Returns a unique identifier for this item.
MessageCacheItem
Public Methods
 MethodDefined By
  
Constructor.
MessageCacheItem
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

item

property
item:Object

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services 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: LiveCycle Data Services 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: LiveCycle Data Services 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()

Constructor.