First off, a bit about how FDMS works
behind the scenes. As you change a property of an object, a
PropertyChangedEvent is fired which tells FDMS of the change. A message
is logged for the item indicating that the property is changed. If you change
a second property on the object, we merge that property change event into to
the first message. If autoCommit is false, when you call “commit”,
all pending changes are sent. So if you are not changing an item, nothing
is sent but if you have changed items A and B and the changes were logged for
these items, there is no way to just commit the changes for item B. You
can individually revert changes made to items however but that will roll the
state of the item back to its state before the change. Now it is possible to release an item so
that FDMS is no longer managing its state. At this point, FDMS will not
be tracking changes to that item so you could call getItem on A and getItem on
B, then releaseItem on A. Now only changes to B will be tracked. If
you call fill and get a collection of objects, there is no way to release just
a single item in the collection however. Your use case is an interesting one and it
would not be hard for us to add a method which just commits the changes to a
specify item so I’ll add an enhancement for that. As for your final question, merge is used
when you have set autoMerge=false and it will merge changes received by the
server into the current managed set of items. As changes are received by
a client for some set of managed items, by default they are automatically “merged”
into the current versions of the items, but when you turn autoMerge=false, they
are queued up instead (the mergeRequired property is set in this case). At
that point, you call “merge” to apply those changes. Jeff From:
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] FDS Data Management quesion Jeff Vroom
- [flexcoders] Re: FDS Data Management quesion thunderstumpgesatwork