com.sap.mdm.data
Interface ResultSet

All Known Implementing Classes:
AbstractResultSet

public interface ResultSet

This interface is the common interface representing all type of result sets

See Also:
RecordResultSet, HierResultSet

Method Summary
 int getCount()
          Get number of result items in this result set
 MetadataItem getMetadata()
          Get metadata of the repository item the all results belongs to
 RepositoryItem getResultItem(int index)
          Get result item at the specified position in the result set
 RepositoryItem[] getResultItems()
          Get array of all result items stored in this record set
 boolean isEmpty()
          Check if this result set is empty
 

Method Detail

getCount

public int getCount()
Get number of result items in this result set

Returns:
number of result items

isEmpty

public boolean isEmpty()
Check if this result set is empty

Returns:
true if result set is empty, false otherwise

getResultItems

public RepositoryItem[] getResultItems()
Get array of all result items stored in this record set

Returns:
array of result items

getResultItem

public RepositoryItem getResultItem(int index)
                             throws IllegalArgumentException
Get result item at the specified position in the result set

Parameters:
index - position of the result item
Returns:
result item
Throws:
IllegalArgumentException - if index is out of bounds

getMetadata

public MetadataItem getMetadata()
Get metadata of the repository item the all results belongs to

Returns:
item metadata. If metadata was not loaded then Null is returned


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.