BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
mx.data 

DataManager  - AS3 LiveCycle Data Services

Packagesx

Top Level
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.consulting.pst.vo
com.adobe.dct.event
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.impl
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.importexport
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.mosaic.core
com.adobe.mosaic.core.events
com.adobe.mosaic.core.validators
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skins.aqua
com.adobe.mosaic.skins.aqua.organizer
com.adobe.mosaic.skins.aqua.tile
com.adobe.mosaic.skins.aqua.util
com.adobe.mosaic.skins.aqua.view
com.adobe.mosaic.skins.aqua.viewManager
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.endpoint
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses

Language Elements

Global Constants
Global Functions
Operators
Statements, Keywords & Directives
Special Types

Appendixes

What's New
Compiler Errors
Compiler Warnings
Run-Time Errors
Migrating to ActionScript 3
Supported Character Sets
MXML Only Tags
Motion XML Elements
Timed Text Tags
List of deprecated elements
Accessibility Implementation Constants
How to Use ActionScript Examples
Legal notices
(Preview)
Packagemx.data
Classpublic class DataManager
InheritanceDataManager Inheritance Object
Implements IEventDispatcher
Subclasses DataService, RPCDataManager

Language Version: ActionScript 3.0
Product Version: LiveCycle Data Services for Java EE 3
Runtime Versions: Flash Player 9, AIR 1.1

The DataManager class provides synchronization functionality with objects on the server for all instances of a specific data type. The DataManager provides synchronization, replication, conflict detection, change tracking, and occasionally connected services.

The DataManager class is an abstract class. Typically you construct a DataService instance that extends the DataManager, or you construct one or more RPCDataManager instances in conjunction with an RPC service component such as an HTTPMultiService, WebService or RemoteObject instance.

To get Single Managed Objects the DataManager.getItem() and DataManager.createItem() methods are used.

When a previously filled ArrayCollection is no longer needed or the items within that collection should no longer receive or create updates, call the DataManager.releaseCollection() method.

When an item previously retrieved using DataManager.getItem() or DataManager.createItem() is no longer needed or should not receive or create updates, call the DataManager.releaseItem() method The DataManager.createItem() and DataManager.getItem() methods return an ItemReference instance that you can use to release a specific instance of a single managed object. Unlike the DataManager.releaseItem() method, calling the ItemReference.releaseItem() method releases a specific instance of a single managed object. The DataManager.releaseItem() method releases the first single managed object that it finds with an identity that matches a specified identity. This is fine as long as the number of calls to the DataManager.getItem() and DataManager.createItem() methods matches the number of calls to the DataManager.releaseItem() method.

A connection to the remote destination is created automatically the first time you call any methods that require a connection. For example, when you call the DataManager.fill() method or the DataManager.commit() method when there are uncommitted updates, the DataManager instance attempts to establish a connection to the remote destination. To force a DataManager instance to disconnect, call the DataManager.disconnect() method. You can use the DataManager.disconnect() method to clean up remote destination resources that are no longer needed. Because other services may be using the same physical connection, calling the DataManager.disconnect() method may terminate the connection.

The bindable property connected indicates the current state of the associated DataManager connection.

Each DataManager instance has a dataStore property that returns an object of type mx.data.DataStore. This object stores the uncommitted changes for one or more DataManager instances. By default, a DataManager instance shares the same DataStore instance with other DataManager instances if they have managed association properties and share the same set of channels. When sharing a DataStore instance, a call to the commit() method on one DataManager instance commits changes for all DataManager instances using the shared DataStore instance. This preserves the order of operations in the event that there are dependencies between the changes in the associated DataManager instances.

DataManager and DataStore dispatch result and fault events for all operations that require a remote call. NOTE: if you create two DataManager instances that point to the same destination both of those instances will share the same collection of managed objects, and will dispatch the same set of events. For example, if you add an event listener to one DataManager instance for a destination, and you use a different instance to initiate an operation, the first DataManager instance will still receive those events. Each operation you initiate on a DataManager returns an AsyncToken. You can add an event responder to that token to receive a result event specific for that operation. This approach often produces cleaner code than adding a result or fault event handler globally for a given destination.

You can use data binding on properties of any managed object for a DataManager instance. A DataManager instance also dispatches a "message" event when a remote operation occurs for any managed object. For example, when a remote process updates a locally managed item, a message is pushed to all DataManager instances that are still managing that item. This message is dispatched as a MessageEvent.MESSAGE event.

A conflict event is dispatched when a conflict is detected either at the remote destination in response to a change the DataManager instance commits or due to a pushed change that conflicts with a local uncommitted change. You can handle conflict events by listening for DataConflictEvent.CONFLICT. Use data binding to update user interface controls by binding to the DataManager.conflicts.resolved property.

The DataManager class supports the following data synchronization configuration modes:

  • autoCommit - when true each change is immediately sent to the remote destination when detected. When this is false, you must make an explicit call to the commit() method. Use the bindable DataManager.commitRequired property determine if there are uncommitted changes.
  • autoSyncEnabled - This affects any fill(), getItem() or createItem() method calls and determines whether managed instances listen for changes made to these objects by other clients or by the DataServiceTransaction server push API at the remote destination.
  • autoMerge - Controls whether changes received from a remote destination are applied immediately or queued up until a call to the DataManager.merge() method is made.

Use the DataManager.revertChanges() method to revert changes for a specific item or for all items. When an error occurs for a remote destination operation, the committed changes are put back into the uncommitted queue so the data stays in sync with the data at the remote destination. If the changes are in error, you typically make a call to the DataManager.revertChanges() method to undo the changes as part of a fault handler.

Related API Elements



Public Properties
 PropertyDefined By
  adapter : DataServiceAdapter = null
An instance of a class that controls interaction with the server.
DataManager
  autoCommit : Boolean
Indicates whether changes to the local cache are automatically committed.
DataManager
  autoConnect : Boolean
Indicates if this service should attempt to connect for any operations that require a connection.
DataManager
  autoMerge : Boolean
If set to false, when changes are pushed from the remote destination to the client they are not immediately applied.
DataManager
  autoSaveCache : Boolean
You can store the local cache of data and changes to disk.
DataManager
  autoSyncEnabled : Boolean
When true, fill(), createItem() and getItem() requests return items that listen for updates made to these items from the remote destination.
DataManager
  cacheID : String
Provides access to the cache identifier for this service.
DataManager
  commitRequired : Boolean
[read-only] Indicates if there are changes that have not been committed and the commit() method should be called.
DataManager
  conflictDetector : ConflictDetector
Provides access to the current implementation being used to detect conflicts for remote operations pushed to this DataManager instance.
DataManager
  conflicts : Conflicts
[read-only] Contains a Conflicts object, which is an ArrayList of Conflict instances.
DataManager
  connected : Boolean
[read-only] Indicates if the DataService is connected to the remote destination.
DataManager
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  dataStore : DataStore
Contains an object of type mx.data.DataStore.
DataManager
  deleteItemOnRemoveFromFill : Boolean
By default, when you call the removeItemAt() method on a managed filled collection, it issues a delete item call to the server to physically remove the item.
DataManager
  encryptLocalCache : Boolean
DataManager
  fallBackToLocalFill : Boolean
This flag determines whether the application should query against the local store when it is not connected.
DataManager
  hierarchicalEventsDefault : Boolean
Associations optionally list property change events on properties of the associated instances.
DataManager
  ignoreCollectionUpdates : Boolean
Indicates if changes to managed collections should be ignored instead of being communicated to the server on a commit.
DataManager
  indexReferences : Boolean
To tune the speed of your application, set this property to false if you have a small number of fills or references to items managed by this DataManager from association properties of other items.
DataManager
  isInitialized : Boolean
[read-only] Indicates whether the metadata associated with this DataManager instance is initialized.
DataManager
  manualSync : ManualSyncConfiguration
Provides access to the ManualSyncConfiguration instance for each DataManager instance.
DataManager
  maxFrequency : uint
Determines the maximum number of messages per second the DataManager instance can receive.
DataManager
  mergeRequired : Boolean
[read-only] Indicates whether there are any pending changes that must be merged.
DataManager
  offlineAdapter : DataServiceOfflineAdapter
Returns an object of type mx.data.DataServiceOfflineAdapter.
DataManager
  pageSize : int
Provides access to the current page size setting for all collections.
DataManager
  pagingEnabled : Boolean
[read-only] Indicates whether the remote destination is configured to allow paged requests.
DataManager
  priority : int
The default message priority for the messages the DataManager instance sends.
DataManager
  requestTimeout : int
Provides access to the request timeout in seconds for an operation.
DataManager
  resetCollectionOnFill : Boolean
When the property is true, after the fill operation completes, a RESET event is sent.
DataManager
  resubscribeAttempts : int
Controls the number of times a disconnected DataManager instance attempts to resubscribe to its destination.
DataManager
  resubscribeInterval : int
Controls the delay, in milliseconds, between resubscribe attempts.
DataManager
  subscribed : Boolean
[read-only] Indicates if the DataManager instance is subscribed to the remote destination.
DataManager
  throwItemPendingErrors : Boolean
Set this property to false if you want to suppress item pending errors when lazily fetched or unpaged data is accessed.
DataManager
Public Methods
 MethodDefined By
  
Constructs an instance of the DataService with the specified destination.
DataManager
  
Clears any data stored to disk with a previous call to the saveCache() method or when the autoSaveCache method was set to true
DataManager
  
Clears the data specified by the passed descriptor from the local store.
DataManager
  
commit(itemsOrCollections:Array = null, cascadeCommit:Boolean = false):mx.rpc:AsyncToken
Commits pending changes for all collections currently managed by the DataStore instance associated with this DataManager instance.
DataManager
  
Indicates if there are pending changes for this particular object.
DataManager
  
Forces a connection attempt by this service to the remote destination.
DataManager
  
Calls a count method on the remote destination.
DataManager
  
Requests that the specified item be created in the remote store.
DataManager
  
Requests that the specified item be deleted from the remote store.
DataManager
  
Disconnects the DataManager instance's network connection.
DataManager
  
executeQuery(queryName:String, propertySpecifier:PropertySpecifier, ... args):mx.rpc:AsyncToken
Executes a query with the provided name and arguments.
DataManager
  
Fills the specified ListCollectionView (collection) instance based on the associated fill method of the destination.
DataManager
  
fillSubset(value:ListCollectionView, ps:PropertySpecifier, ... args):mx.rpc:AsyncToken
Fills the specified ListCollectionView (collection) instance based on the associated fill method of the destination.
DataManager
  
findItem(queryName:String, propertySpecifier:PropertySpecifier, ... args):mx.rpc:AsyncToken
Executes a query that returns a single item.
DataManager
  
Returns an ArrayCollection or a single managed object from the the local store.
DataManager
  
Fills the specified ListCollectionView (collection) instance with CacheDataDescriptor instances.
DataManager
  
Fills the specified ListCollectionView (collection) instance with all cache identifiers previously used in the application.
DataManager
  
getItem(identity:Object, defaultValue:Object = null):ItemReference
Makes an asynchronous request for an item matching the specified identity.
DataManager
  
Looks up the supplied item with the given identity.
DataManager
  
Returns page information for the specified collection.
DataManager
  
Returns the pending operation in the message cache for the specified item.
DataManager
 Inherited
Indicates whether an object has a specified property defined.
Object
  
Forces initialization of the DataStore.
DataManager
  
Returns true if the passed collection is managed by this service.
DataManager
  
Returns true if the passed collection is using paging features.
DataManager
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
isRangeResident(view:ListCollectionView, startIndex:int, numberOfItems:int):Boolean
Returns true if the supplied range of items is all paged in.
DataManager
  
localFill(value:ListCollectionView, ps:PropertySpecifier, ... args):mx.rpc:AsyncToken
Fills the specified ListCollectionView based on the associated <fill-method> elements based on the data from the local store.
DataManager
  
Merges any pending updates into the managed set of objects.
DataManager
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
Refreshes all data managed by this DataManager instance.
DataManager
  
Refreshes a collection previously filled with the fill method or managed as a managed association.
DataManager
  
release(clear:Boolean = true, copyStillManagedItems:Boolean = true):void
Releases all managed collections and items for the DataManager instance.
DataManager
  
releaseCollection(view:ListCollectionView, clear:Boolean = false, copyStillManagedItems:Boolean = true):void
Releases any item within the specified collection from management by this DataManager instance.
DataManager
  
releaseItem(item:IManaged, copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):IManaged
Releases the specified item from management by this DataManager instance.
DataManager
  
releaseItemsFromCollection(collection:ListCollectionView, startIndex:int, numberOfItems:int):int
Releases a range of items in the collection.
DataManager
  
Releases the value for a single-valued association.
DataManager
  
Reverts any uncommitted changes to the specified item.
DataManager
  
Reverts the changes for any item contained in the specified collection which should be managed by this DataManager instance.
DataManager
  
This method saves the current state of the DataManager instance's cache.
DataManager
 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
  
updateItem(item:Object, origItem:Object = null, changes:Array = null):mx.rpc:AsyncToken
Triggers an update for the specified item.
DataManager
 Inherited
Returns the primitive value of the specified object.
Object
Protected Methods
 MethodDefined By
  
Queues a fault if this data manager has not yet been initialized.
DataManager
Events
 Event Summary Defined By
  The DataConflictEvent.CONFLICT event is dispatched when a conflict is detected between either pending local changes and changes submitted by another client, or when changes submitted by this client are conflicting with those in the remote destination.DataManager
  The DataManagerFaultEvent.FAULT event is dispatched when a service call fails due to an error.DataManager
  The MessageEvent.MESSAGE event is dispatched when the remote destination pushes a notification of a data operation.DataManager
  The PropertyChangeEvent.PROPERTY_CHANGE event is dispatched when a property of this service changes.DataManager
  The ResultEvent.RESULT event is dispatched when a service call successfully returns.DataManager
Property Detail

conflicts

property 
conflicts:Conflicts  [read-only]

Contains a Conflicts object, which is an ArrayList of Conflict instances.

Conflicts must be resolved before you call the commit() method. Conflicts can be resolved by going through the conflicts, resolving each conflict individually or by calling the acceptAllClient() method or acceptAllServer() method on this property.

This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.



Implementation
    public function get conflicts():Conflicts

encryptLocalCache

property 
encryptLocalCache:Boolean



Implementation
    public function get encryptLocalCache():Boolean
    public function set encryptLocalCache(value:Boolean):void

fallBackToLocalFill

property 
fallBackToLocalFill:Boolean

This flag determines whether the application should query against the local store when it is not connected. By default when the offline adapter is configured to support dynamic query execution, invoking fill() will not query the local store when the application is not connected. If fallBackToLocalFill is set to true, then the local store queried as well when the application is disconnected.



Implementation
    public function get fallBackToLocalFill():Boolean
    public function set fallBackToLocalFill(value:Boolean):void

ignoreCollectionUpdates

property 
ignoreCollectionUpdates:Boolean

Indicates if changes to managed collections should be ignored instead of being communicated to the server on a commit.

The default value is false.



Implementation
    public function get ignoreCollectionUpdates():Boolean
    public function set ignoreCollectionUpdates(value:Boolean):void
Constructor Detail
Method Detail

checkImplementation

()method
protected function checkImplementation():void

Queues a fault if this data manager has not yet been initialized.

releaseReference

()method 
public function releaseReference(item:Object, propName:String):Boolean

Releases the value for a single-valued association. If the value is not paged in false is returned. If the value is paged in, that reference is released and true is returned. If this was the last reference to the specific item, the next attempt to access that item will cause the ItemPendingError and the value to be fetched again.

Parameters

item:Object — Parent item containing a property which is a single valued association.
 
propName:String — Name of the property referring to a single valued association.

Returns
Boolean — true if the value was released.
Event Detail