用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隐藏过滤条件
mx.data 

DataManager  - AS3 ADEP Data Services

x

顶级
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.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
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.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
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.config
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.external.dc
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.formbridge
com.adobe.icc.services.fragmentlayout
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.data
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.content
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.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
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.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
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.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
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
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

语言元素

全局常量
全局函数
运算符
语句、关键字和指令
特殊类型

附录

新增内容
编译器错误
编译器警告
运行时错误
迁移到 ActionScript 3
支持的字符集
仅适用于 MXML 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
mx.data
public class DataManager
继承DataManager Inheritance Object
实现 IEventDispatcher
子类 DataService, RPCDataManager

语言版本: ActionScript 3.0
产品版本: Adobe Digital Enterprise Platform Data Services for Java EE 3
运行时版本: Flash Player 9, AIR 1.1

DataManager 类为特定数据类型的所有实例提供与服务器上的对象保持同步的功能。DataManager 提供同步、复制、冲突检测、更改跟踪和偶尔连接的服务。

DataManager 类是一个抽象类。通常,构造用于扩展 DataManager 的DataService 实例,或构造与 RPC 服务组件(如 HTTPMultiService、WebService 或 RemoteObject 实例)一起使用的一个或多个 RPCDataManager 实例。

要获得单一托管对象,可使用 DataManager.getItem()DataManager.createItem() 方法。

如果不再需要以前填充的 ArrayCollection,或者该集合中的项不再接收或创建更新,则调用 DataManager.releaseCollection() 方法。

当不再需要之前使用 DataManager.getItem()DataManager.createItem() 方法检索到的项,或相应项不应接收或创建更新时,调用 DataManager.releaseItem() 方法。DataManager.createItem()DataManager.getItem() 方法将返回一个 ItemReference 实例,您可以使用该实例来释放单个托管对象的特定实例。与 DataManager.releaseItem() 方法不同,调用 ItemReference.releaseItem() 方法将释放单个托管对象的特定实例。DataManager.releaseItem() 方法释放其根据匹配指定标识找到的第一个单个托管对象。只要调用 DataManager.getItem()DataManager.createItem() 方法的次数与调用 DataManager.releaseItem() 方法的次数匹配,这种方法就可行。

第一次调用任何需要连接的方法时,将自动创建到远程目标的连接。例如,如果存在未提交的更新时调用 DataManager.fill() 方法或 DataManager.commit() 方法,则 DataManager 实例会尝试建立到远程目标的连接。要强制断开 DataManager 实例的连接,请调用 DataManager.disconnect() 方法。可以使用 DataManager.disconnect() 方法来清理不再需要的远程目标资源。其它服务可能也使用同一物理连接,因此调用 DataManager.disconnect() 方法可能会终止此连接。

可绑定属性 connected 指示关联的 DataManager 连接的当前状态。

每个 DataManager 实例都具有 dataStore 属性,该属性可返回类型为 mx.data.DataStore 的对象。此对象存储一个或多个 DataManager 实例的未提交的更改。默认情况下,如果 DataManager 实例和其它 DataManager 实例管理了关联属性并共享同一组通道,则它们将共享同一个 DataStore 实例。共享 DataStore 实例时,针对一个 DataManager 实例调用 commit() 方法会使用共享 DataStore 实例提交对所有 DataManager 实例所做的更改。如果关联的 DataManager 实例中各个更改之间存在相关性,它会保留操作顺序。

DataManager 和 DataStore 为需要远程调用的所有操作调度 result 和 fault 事件。注意:如果您创建两个指向同一目标的 DataManager 实例,这两个实例将共享同一个托管对象集合,并调度同一组事件。例如,如果您为某个目标向一个 DataManager 实例中添加事件侦听器,但使用另一个实例启动操作,则第一个 DataManager 实例仍会收到这些事件。您在 DataManager 上启动的每个操作都会返回 AsyncToken。您可以为该标记添加事件响应器以接收特定于该操作的结果事件。此方法产生的代码通常比为给定目标全局添加一个结果或错误事件处理程序而产生的代码更简洁。

您可以针对 DataManager 实例的任何托管对象的属性使用数据绑定。当对任何托管对象执行远程操作时,DataManager 实例还会调度“message”事件。例如,当远程进程更新本地托管项时,将向仍然管理该项的所有 DataManager 实例推送消息。此消息作为 MessageEvent.MESSAGE 事件进行调度。

当远程目标响应 DataManager 实例提交的更改,或推送的更改与本地未提交的更改冲突时,检测到冲突即会调度冲突事件。可以通过侦听 DataConflictEvent.CONFLICT 来处理冲突事件。使用数据绑定,通过将用户界面控件绑定到 DataManager.conflicts.resolved 属性来更新这些控件。

DataManager 类支持下列数据同步配置模式:

  • autoCommit - 如果为 true,则每当检测到更改时就会立即将其发送到远程目标。如果为 false,则必须显式调用 commit() 方法。使用可绑定的 DataManager.commitRequired 属性来确定是否存在未提交的更改。
  • autoSyncEnabled - 这将影响所有 fill()getItem()createItem() 方法调用,并确定托管实例是否侦听由其它客户端或 DataServiceTransaction 服务器在远程目标上推送 API 对这些对象所做的更改。
  • autoMerge - 控制从远程目标收到的更改是立即应用,还是排队等候直至调用 DataManager.merge() 方法时再应用。

使用 DataManager.revertChanges () 方法来还原对特定项或所有项所做的更改。如果远程目标操作发生错误,则将已提交的更改放回到未提交的队列中,以使数据和远程目标上的数据保持同步。如果更改发生错误,在故障处理程序的处理过程中通常调用 DataManager.revertChanges() 方法来撤消更改。

相关 API 元素



公共属性
 属性由以下参数定义
  adapter : DataServiceAdapter = null
控制与服务器交互的类的实例。
DataManager
  autoCommit : Boolean
指示是否自动提交对本地缓存进行的更改。
DataManager
  autoConnect : Boolean
指示此服务是否应为需要连接的任何操作尝试连接。
DataManager
  autoMerge : Boolean
如果设置为 false,则当将更改从远程目标推送到客户端时不会立即应用。
DataManager
  autoSaveCache : Boolean
可以将数据和更改的本地缓存保存到磁盘中。
DataManager
  autoSyncEnabled : Boolean
如果为 true,fill()、createItem() 和 getItem() 请求将返回负责侦听对远程目标中的项进行的更新的项。
DataManager
  cacheID : String
提供对此服务的缓存标识的访问。
DataManager
  commitRequired : Boolean
[只读] 指示是否存在未提交的更改以及是否应该调用 commit() 方法。
DataManager
  conflictDetector : ConflictDetector
提供对当前实现的访问,此实现正用于检测推送到 DataManager 实例的远程操作的冲突。
DataManager
  conflicts : Conflicts
[只读] 包含 Conflicts 对象,即 Conflict 实例的 ArrayList。
DataManager
  connected : Boolean
[只读] 指示 DataService 是否已连接到远程目标。
DataManager
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  dataStore : DataStore
包含一个 mx.data.DataStore 类型的对象。
DataManager
  deleteItemOnRemoveFromFill : Boolean
默认情况下,当您对托管填充集合调用 removeItemAt() 方法时,它会向服务器发出一个删除项调用以物理删除该项。
DataManager
  encryptLocalCache : Boolean
指示是否应为使用 SQL 脱机适配器的 AIR 客户端加密脱机存储。
DataManager
  fallBackToLocalFill : Boolean
此标志确定当应用程序断开连接时是否对本地存储进行查询。
DataManager
  hierarchicalEventsDefault : Boolean
关联选择性地列出关联实例属性上的属性更改事件。
DataManager
  ignoreCollectionUpdates : Boolean
指示是否忽略对托管集合所做的更改,而不针对提交与服务器通信。
DataManager
  indexReferences : Boolean
要调整应用程序的速度,如果您对此 DataManager 所管理的、其它项的关联属性中的项进行了少量的填充或引用,请将此属性设置为 false。
DataManager
  isInitialized : Boolean
[只读] 指示是否初始化与此 DataManager 实例相关联的元数据。
DataManager
  manualSync : ManualSyncConfiguration
为每个 DataManager 实例提供对 ManualSyncConfiguration 实例的访问。
DataManager
  maxFrequency : uint
确定 DataManager 实例可以每秒收到的最大消息数。
DataManager
  mergeRequired : Boolean
[只读] 指示是否存在必须合并的挂起更改。
DataManager
  offlineAdapter : DataServiceOfflineAdapter
返回一个 mx.data.DataServiceOfflineAdapter 类型的对象。
DataManager
  pageSize : int
提供对所有集合的当前页面大小设置的访问。
DataManager
  pagingEnabled : Boolean
[只读] 指示是否将远程目标配置为允许分页请求。
DataManager
  priority : int
DataManager 实例发送的消息的默认消息优先级。
DataManager
  requestTimeout : int
提供对操作的请求超时(以秒为单位)的访问。
DataManager
  resetCollectionOnFill : Boolean
如果属性为 true,则在 fill 操作完成后,将发送 RESET 事件。
DataManager
  resubscribeAttempts : int
控制已断开连接的 DataManager 实例尝试重新订阅目标的次数。
DataManager
  resubscribeInterval : int
控制重新订阅尝试之间的延迟(以毫秒为单位)。
DataManager
  saveCacheRequired : Boolean
[只读] 指示是否存在尚未保存至本地缓存的更改,以及是否应该调用 saveCache() 方法。
DataManager
  subscribed : Boolean
[只读] 指示 DataManager 实例是否已订阅到远程目标。
DataManager
  throwItemPendingErrors : Boolean
如果您要在访问松散访存的数据或未分页的数据时禁止项挂起错误,请将此属性设置为 false。
DataManager
公共方法
 方法由以下参数定义
  
使用指定目标构造 DataService 的实例。
DataManager
  
清除以前调用 saveCache() 方法或将 autoSaveCache 方法设置为 true 时存储到磁盘中的所有数据
DataManager
  
清除由从本地存储传递的描述符指定的数据。
DataManager
  
commit(itemsOrCollections:Array = null, cascadeCommit:Boolean = false):mx.rpc:AsyncToken
提交当前由与此 DataManager 实例关联的 DataStore 实例管理的所有集合的挂起更改。
DataManager
  
指示是否存在此特定对象的挂起更改。
DataManager
  
强制此服务尝试连接到远程目标。
DataManager
  
调用远程目标上的计数方法。
DataManager
  
请求在远程存储中创建指定项。
DataManager
  
请求从远程存储中删除指定项。
DataManager
  
断开 DataManager 实例的网络连接。
DataManager
  
executeQuery(queryName:String, propertySpecifier:PropertySpecifier, ... args):mx.rpc:AsyncToken
使用提供的名称和自变量执行查询。
DataManager
  
根据目标的关联 fill 方法填充指定的 ListCollectionView(集合)实例。
DataManager
  
根据目标的关联 fill 方法填充指定的 ListCollectionView(集合)实例。
DataManager
  
findItem(queryName:String, propertySpecifier:PropertySpecifier, ... args):mx.rpc:AsyncToken
执行一个返回单个项的查询。
DataManager
  
返回本地存储中的 ArrayCollection 或单个托管对象。
DataManager
  
使用 CacheDataDescriptor 实例填充指定的 ListCollectionView(集合)实例。
DataManager
  
使用之前在应用程序中使用的所有缓存标识符来填充指定的 ListCollectionView(集合)实例。
DataManager
  
getItem(identity:Object, defaultValue:Object = null):ItemReference
对与指定标识匹配的项发出异步请求。
DataManager
  
使用给定的标识查找所提供的项。
DataManager
  
返回指定集合的页面信息。
DataManager
  
返回消息缓存中针对指定项的挂起操作。
DataManager
 Inherited
表示对象是否已经定义了指定的属性。
Object
  
强制初始化 DataStore。
DataManager
  
如果传递的集合由此服务管理,则返回 true。
DataManager
  
如果传递的集合要使用分页功能,则返回 true。
DataManager
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
  
isRangeResident(view:ListCollectionView, startIndex:int, numberOfItems:int):Boolean
如果将提供的项范围全部页入,则返回 true。
DataManager
  
根据关联的 <fill-method> 元素基于本地存储上的数据填充指定的 ListCollectionView。
DataManager
  
将所有挂起更新合并到托管对象集中。
DataManager
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
  
刷新由此 DataManager 实例管理的所有数据。
DataManager
  
刷新先前使用 fill 方法填充或作为托管关联进行管理的集合。
DataManager
  
release(clear:Boolean = true, copyStillManagedItems:Boolean = true):void
释放 DataManager 实例的所有托管集合和项。
DataManager
  
releaseCollection(view:ListCollectionView, clear:Boolean = false, copyStillManagedItems:Boolean = true):void
使指定集合中的所有项脱离此 DataManager 实例的管理。
DataManager
  
releaseItem(item:IManaged, copyStillManagedItems:Boolean = true, enableStillManagedCheck:Boolean = true):IManaged
使指定的项脱离此 DataManager 实例的管理。
DataManager
  
releaseItemsFromCollection(collection:ListCollectionView, startIndex:int, numberOfItems:int):int
释放集合中的一系列项。
DataManager
  
释放单值关联的值。
DataManager
  
还原对指定项进行的所有未提交的更改。
DataManager
  
还原指定集合中包含的、应由此 DataManager 实例管理的所有项的更改。
DataManager
  
此方法保存当前状态的 DataManager 实例缓存。
DataManager
  
指示是否存在对此特定对象所做的未保存至本地缓存的暂挂更改。
DataManager
 Inherited
设置循环操作动态属性的可用性。
Object
  
获取之前在此数据服务(数据管理器)上执行的所有填充的已更改项。
DataManager
  
[静态] 允许所有本地数据的同步的简便方法:针对每个数据服务(数据管理器)调用 synchronizeAllFills(),以便仅当所有单个 synchronizeAllFills() 调用完成后,才完成最终结果标记。
DataManager
  
获取上一次调用 fill 或 synchronizeFill 后在服务器上更改的已更改项。
DataManager
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
  
updateItem(item:Object, origItem:Object = null, changes:Array = null):mx.rpc:AsyncToken
触发指定项目的更新。
DataManager
 Inherited
返回指定对象的原始值。
Object
受保护的方法
 方法由以下参数定义
  
如果尚未初始化此数据管理器,则使故障排队。
DataManager
事件
 事件 摘要 由以下参数定义
  如果在挂起的本地更改和其它客户端提交的更改之间检测到冲突,或者此客户端提交的更改与远程目标中的更改发生冲突,则调度 DataConflictEvent.CONFLICT 事件。DataManager
  当由于错误而导致服务调用失败时,将调度 DataManagerFaultEvent.FAULT 事件。DataManager
  当远程目标推送数据操作的通知时,将调度 MessageEvent.MESSAGE 事件。DataManager
  此服务的属性发生更改时,将调度 PropertyChangeEvent.PROPERTY_CHANGE 事件。DataManager
  当服务调用成功返回时,将调度 ResultEvent.RESULT 事件。DataManager
属性详细信息
构造函数详细信息
方法详细信息
事件详细信息




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。