com.sap.mdm.data
Class AbstractResultSet

java.lang.Object
  extended bycom.sap.mdm.data.AbstractResultSet
All Implemented Interfaces:
ResultSet
Direct Known Subclasses:
RecordResultSet

public class AbstractResultSet
extends Object
implements ResultSet

Abstract implementation for all classes implementing interface ResultSet

See Also:
RecordResultSet, HierResultSet

Constructor Summary
AbstractResultSet()
          Empty Constructor
AbstractResultSet(RepositoryItem[] repositoryItems)
          Constructor
 
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
 void setResultItems(RepositoryItem[] repositoryItems)
          Set repository items to result set
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractResultSet

public AbstractResultSet()
Empty Constructor


AbstractResultSet

public AbstractResultSet(RepositoryItem[] repositoryItems)
Constructor

Parameters:
repositoryItems -
Method Detail

getCount

public int getCount()
Description copied from interface: ResultSet
Get number of result items in this result set

Specified by:
getCount in interface ResultSet
Returns:
number of result items

isEmpty

public boolean isEmpty()
Description copied from interface: ResultSet
Check if this result set is empty

Specified by:
isEmpty in interface ResultSet
Returns:
true if result set is empty, false otherwise

getResultItems

public RepositoryItem[] getResultItems()
Description copied from interface: ResultSet
Get array of all result items stored in this record set

Specified by:
getResultItems in interface ResultSet
Returns:
array of result items

getResultItem

public RepositoryItem getResultItem(int index)
                             throws IllegalArgumentException
Description copied from interface: ResultSet
Get result item at the specified position in the result set

Specified by:
getResultItem in interface ResultSet
Parameters:
index - position of the result item
Returns:
result item
Throws:
IllegalArgumentException - if index is out of bounds

getMetadata

public MetadataItem getMetadata()
Description copied from interface: ResultSet
Get metadata of the repository item the all results belongs to

Specified by:
getMetadata in interface ResultSet
Returns:
item metadata. If metadata was not loaded then Null is returned

setResultItems

public void setResultItems(RepositoryItem[] repositoryItems)
Set repository items to result set

Parameters:
repositoryItems - array of repository items

toString

public String toString()
See Also:
Object.toString()


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.