Paquete | mx.data |
Clase | public dynamic class ItemReference |
Herencia | ItemReference ![]() ![]() ![]() |
Implementa | IItemReference |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Versiones de motor de ejecución: | 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.
Propiedades públicas
Propiedad | Definido por | ||
---|---|---|---|
![]() | constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | |
![]() | message : IMessage [solo lectura]
Provides access to the associated message. | AsyncToken | |
![]() | responders : Array [solo lectura]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | |
![]() | result : Object [solo lectura]
The result that was returned by the associated RPC call. | AsyncToken |
Métodos públicos
Método | Definido por | ||
---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | |
![]() |
Adds a responder to an Array of responders. | AsyncToken | |
![]() |
Distribuye un evento en el flujo del evento. | EventDispatcher | |
![]() |
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | |
![]() |
Indica si un objeto tiene definida una propiedad especificada. | Object | |
![]() |
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | |
![]() |
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | |
![]() |
Indica si existe la propiedad especificada y si es enumerable. | Object | |
![]() |
Elimina un detector del objeto EventDispatcher. | EventDispatcher | |
![]() |
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | |
![]() |
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | |
![]() |
Devuelve la representación de cadena del objeto especificado. | Object | |
![]() |
Devuelve el valor simple del objeto especificado. | Object | |
![]() |
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Eventos
Tue Jun 12 2018, 02:12 PM Z