Almost there. The only problem I have are with deletes and trying to get
the "original" index. If try the following:
1 if (dobj.getChangeSummary().isDeleted(dobj)) {
2 property = changeSummary.getOldContainmentProperty(dobj);
3 container = changeSummary.getOldContainer(dobj);
4 list = (List)changeSummary.getOldValue(dobj, property).getValue();
5 int index = list.indexOf(dobj);
6 System.out.println("index = " + index);
I get a NPE on line 5. If I replace line 5 with:
list = container.getList(property);
The index returned is -1. The XML representation is below. The index
attribute is correct, but I'm at a loss at how to get it via the APIs.
<objectChanges key="#//@eRootObject">
<value xsi:type="sdo_1:ChangeSummarySetting" featureName="QuoteType">
<listChanges index="1" referenceValues="
#//@eChangeSummary/@objectsToAttach.0"/>
</value>
</objectChanges>
Thanks,
Scott