Package | mx.data |
Class | public dynamic class ItemReference |
Inheritance | ItemReference ![]() ![]() ![]() |
Implements | IItemReference |
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 |
DataService.getItem()
and DataService.createItem()
methods to provide a way to manage a reference to the remote object.
The AsyncToken implementation that this class extends provides a list of
responders to be notified of result and fault events that occur on the
operation to retrieve the item (the get or the create).
A binding can be made to the value of the result
property
that always maintains a reference to the managed instance.
If the item is deleted in another client, the result
property
will be set to null.
If a fault occurs and the DatService instance cannot retrieve the item,
the invalid
property is set to true
.
Listen for the fault event to get more information about what caused
the error.
To release the reference to this managed item, call the
ItemReference.releaseItem()
method.
This is similar to calling the DataService.releaseItem()
method
however, unlike the DataService.releaseItem()
this method
releases this reference rather than the first item instance found of that
type.
This occurs when more than one getItem()
method call to retrieve
the same item from different parts of an application is made.
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
![]() | message : IMessage [read-only]
Provides access to the associated message. | AsyncToken | |
![]() | responders : Array [read-only]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | |
![]() | result : Object [read-only]
The result that was returned by the associated RPC call. | AsyncToken |
Public Methods
Method | Defined By | ||
---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | |
![]() |
Adds a responder to an Array of responders. | AsyncToken | |
![]() |
Dispatches an event into the event flow. | EventDispatcher | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Removes a listener from the EventDispatcher object. | EventDispatcher | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Thu Dec 6 2018, 01:12 PM -08:00