on 08-25-2009 7:06 AM
Hi all,
Could someone explain to me what's the advantage of using ComparisonRecordResultSet class to retrieve data from MDM 7.1 using java APIs.
It would also help if i could get a sample code for the same.
Regards
Harsh
Hi,
This class can be used to compare records. If you want to retrieve data you have to use classes such as RetrieveLimitedRecordsCommand.
Here's a blog that explains how to use commands : [How to work with Command in the new MDM Java API|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8642] [original link is broken] [original link is broken] [original link is broken];.
Regards,
Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
According to the documentation, you should use it like this :
RecordResultSet records = limitingCommand.getRecords();
ComparisonRecordResultSet comparison = new ComparisonRecordResultSet(records);
boolean fieldValuesIdentical = comparison.isIdentical(fieldId); // true if the field values are identical across all records
Regards,
Pierre
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.