changeSummary.getChangedDataObjects() contains changed DataObjects.
changeSummary.isCreated, changeSummary.isDeleted and
changeSummary.isModofied can be used to distinguish them.

"objectChanges key" uses a path to reference a changed DataObject.
If an index is still desired, here's how to get it:
 Property property = changedDataObject.getContainmentProperty(); //or
changeSummary.getOldContainmentProperty(deletedDataObject)
 DataObject container = changedDataObject.getContainer(); //or
changeSummary.getOldContainer(deletedDataObject)
 List list = container.getList(property); //or
(List)changeSummary.getOldValue(container,property).getValue() for
deletedDataObject
 int index = list.indexOf(changedDataObject);


On 1/31/07, Scott Kurinskas <[EMAIL PROTECTED]> wrote:

Thanks again, this really helps.  As I need the new values, it should be
relatively simple to iterate through the change summary and generate a
datagraph with the delta.  What I cannot figure out after playing around
with the ChangeSummary class is how figure out the "node" that has been
updated.  For example, I have a QuoteList type that could contain
thousands
of QuoteTypes, with only one or two being updated.

If I print out the change summary datagraph, an update to node 0 looks
like:
<objectChanges key="#//@eRootObject/@QuoteType.0">

What I cannot figure out is how to programmatically get a reference to
either the index of the updated dataobject or the key value.  Once I have
the index, I should be good.

Thanks,
Scott




--

Yang ZHONG

Reply via email to