com.sap.mdm.data
Class MultipleRecordsResult

java.lang.Object
  extended bycom.sap.mdm.data.MultipleRecordsResult

public class MultipleRecordsResult
extends Object

Represents the result of a multiple record creation or modification.


Constructor Summary
MultipleRecordsResult(Record[] records, int[] succeededRecords, HashMap succeededRecordsMap, int[] failedRecords, HashMap failedRecordsMap)
          Constructor with the specified parameters.
 
Method Summary
 String getFailedRecordMessage(int index)
          Returns the error message for the specified record index that failed the operation.
 int[] getFailedRecords()
          Returns the indices of the records that failed the operator.
 Record[] getRecords()
          Returns the original records.
 RecordId getSucceededRecord(int index)
          Returns the record Id of the record that succeeded the operation.
 int getSucceededRecordChangeStamp(int index)
          Returns the updated change stamp of the record that succeeded the operation.
 int[] getSucceededRecords()
          Returns the indices of the records that were successful.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleRecordsResult

public MultipleRecordsResult(Record[] records,
                             int[] succeededRecords,
                             HashMap succeededRecordsMap,
                             int[] failedRecords,
                             HashMap failedRecordsMap)
Constructor with the specified parameters.

Parameters:
records - the original records
succeededRecords - the list of succeeded records
succeededRecordsMap - mapping for succeeded records
failedRecords - the list of failed records
failedRecordsMap - mapping for failed records
Method Detail

getRecords

public Record[] getRecords()
Returns the original records.

Returns:
the original records

getSucceededRecords

public int[] getSucceededRecords()
Returns the indices of the records that were successful. The index is based on the original records, getRecords().

Returns:
the indices

getFailedRecords

public int[] getFailedRecords()
Returns the indices of the records that failed the operator. The index is based on the original records, getRecords().

Returns:
the indices

getFailedRecordMessage

public String getFailedRecordMessage(int index)
Returns the error message for the specified record index that failed the operation.

Parameters:
index - an index
Returns:
an error message
See Also:
getFailedRecords()

getSucceededRecord

public RecordId getSucceededRecord(int index)
Returns the record Id of the record that succeeded the operation.

Parameters:
index - an index
Returns:
a record Id
See Also:
getSucceededRecords()

getSucceededRecordChangeStamp

public int getSucceededRecordChangeStamp(int index)
Returns the updated change stamp of the record that succeeded the operation.

Parameters:
index - an index
Returns:
a new change stamp
See Also:
getSucceededRecords()


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.