Hello all,
I am using the new java PSDK 8.5, specifically the ConfObject and the ConfObjectDelta classes.
So I have 2 ConfObject instances which I need to work out if the 2 objects are different/equivalent.
I see there is a ConfDeltaUtility.createDelta(ConfObject originalObject, ConfObject changedObject)
which returns a ConfObjectDelta. This is really handy.
My problem is that when the 2 objects have identical values, it still returns a ConfObjectDelta
containing only the DBID.
I cannot work out if there was a difference at all in the result
cos there are no inspector functions to query the object
to see if there are other attributes apart from the DBID.
This resulting ConfObjectDelta when both objects are the same looks like the following,
with only the DBID (which has to be present)
Code: [Select]
ConfObjectDelta(CfgDeltaDN) {
"deltaDN" = ConfObject(CfgDN) {
"DBID" = 10982
}
}
I want to know how one would work out if the objects are the same.
There is no way I can see to 'examine/access' this object to see that there are
no attributes apart from the DBID.
Doing an .equals() wont work for me cos the it's not the same instance, just an instance with same values.
Any ideas?
Many thanks in advance,
Chai