| Package | mx.data |
| Class | public dynamic class ManagedObjectProxy |
| Inheritance | ManagedObjectProxy ObjectProxy Proxy Object |
| Implements | IManaged |
addEventListener() method.
This class provides the same level of functionality for anonymous objects
managed by a DataService as that given to any class with
[Managed] metadata applied to it.
| Method | Defined By | ||
|---|---|---|---|
|
Intializes this proxy with the specified object and id.
| ManagedObjectProxy | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object
so that the listener receives notification of an event.
| ObjectProxy | |
![]() |
Dispatches an event into the event flow.
| ObjectProxy | |
![]() |
Checks whether there are any event listeners registered
for a specific type of event.
| ObjectProxy | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Called when a complex property is updated.
| ObjectProxy | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
|
ManagedObjectProxy may need to exclude properties on the wrapped
anonymous Object if a DataService destination is defined and lazy
associations have been configured.
| ManagedObjectProxy | ||
![]() |
Removes an event listener.
| ObjectProxy | |
![]() |
Sets the availability of a dynamic property for loop operations.
| 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 object
or any of its ancestors for the specified event type.
| ObjectProxy | |
|
ManagedObjectProxy checks if properties on the wrapped anonymous Object
are lazy associations and if so they are excluded from serialization.
| ManagedObjectProxy | ||
| Method | Defined By | ||
|---|---|---|---|
|
DataService must save the state of an unmanaged collection before a
change to any of the contained items has been modified.
| ManagedObjectProxy | ||
|
If the property being set is an ArrayCollection then we need to ensure
that any list that this proxy was previously listening for events on
should stop.
| ManagedObjectProxy | ||
![]() |
This method creates an array of all of the property names for the
proxied object.
| ObjectProxy | |
| destination | property |
mx_internal var destination:String
| referencedIds | property |
mx_internal var referencedIds:Object
| ManagedObjectProxy | () | Constructor |
public function ManagedObjectProxy(item:Object = null, uid:String = null)
Intializes this proxy with the specified object and id.
Parametersitem:Object (default = null) — item Object [optional] to proxy.
if no item is specified, an anonymous object will be constructed
and assigned.
|
|
uid:String (default = null) — uid String [optional] containing the unique id for this object
instance.
Required for IManaged compliance as every object must
provide a unique way of identifying it.
If no value is specified a random id will be assigned.
|
| getProperty | () | method |
flash_proxy override function getProperty(name:*):*
DataService must save the state of an unmanaged collection before a change to any of the contained items has been modified. To do this we need to listen for PropertyChangeEvents from the list implementation, and redispatch those events so that the DataService can intercept them and make the appropriate snapshot of the collection. We detect an unmanaged collection by looking at the list implementation. Managed collections have a DataList and unmanaged collections use lists that should implement IPropertyChangeNotifier.
Parameters
name:* — name typically a string containing the name of the property
or possibly a QName where the property name is found by
inspecting the localName property.
|
* — the property value or an instance of ObjectProxy
|
| readExternal | () | method |
public override function readExternal(input:IDataInput):void
ManagedObjectProxy may need to exclude properties on the wrapped
anonymous Object if a DataService destination is defined and lazy
associations have been configured. This method supports the custom
serialization of writeExternal.
Parameters
input:IDataInput |
| setProperty | () | method |
flash_proxy override function setProperty(name:*, value:*):void
If the property being set is an ArrayCollection then we need to ensure that any list that this proxy was previously listening for events on should stop.
Parameters
name:* — name Object containing the name of the property that
should be updated on the proxied object.
|
|
value:* — value Value that should be set on the proxied object.
|
| writeExternal | () | method |
public override function writeExternal(output:IDataOutput):void
ManagedObjectProxy checks if properties on the wrapped anonymous Object are lazy associations and if so they are excluded from serialization.
Parameters
output:IDataOutput |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/data/ManagedObjectProxy.html