com.sap.mdm.data
Class RecordResultSet

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

public class RecordResultSet
extends AbstractResultSet

The ResordResultSet represents the result set of records

See Also:
HierResultSet

Constructor Summary
RecordResultSet()
          Empty Constructor
RecordResultSet(Record[] records, RepositorySchema repositoryMetadata, TableId tableId)
          Constructs with the specified parameters.
RecordResultSet(Record[] records, TableId tableId)
          Constructs with the specified parameter.
RecordResultSet(RecordResultSet resultSet, RepositorySchema repositoryMetadata)
          Constructs with the specified parameters.
RecordResultSet(RepositorySchema repositoryMetadata, TableId tableId)
          Constructs with the specified repository schema.
 
Method Summary
 MetadataItem getMetadata()
          Get metadata of the repository item the all results belongs to
 Record getRecord(int index)
          Get record at the specified position in the result set
 TableSchema getRecordMetadata()
          Get metadata of the table the all results belongs to
 Record[] getRecords()
          Return array of records stored in this result set
 TableId getTableId()
          Returns the ID of table all records in the set belong to
 void setRecords(Record[] records)
          Set records to result set
 
Methods inherited from class com.sap.mdm.data.AbstractResultSet
getCount, getResultItem, getResultItems, isEmpty, setResultItems, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordResultSet

public RecordResultSet()
Empty Constructor


RecordResultSet

public RecordResultSet(RepositorySchema repositoryMetadata,
                       TableId tableId)
Constructs with the specified repository schema.

Parameters:
repositoryMetadata - the repository schema

RecordResultSet

public RecordResultSet(Record[] records,
                       TableId tableId)
Constructs with the specified parameter.

Parameters:
records - the list of records

RecordResultSet

public RecordResultSet(Record[] records,
                       RepositorySchema repositoryMetadata,
                       TableId tableId)
Constructs with the specified parameters.

Parameters:
records - the list of records
repositoryMetadata - the repository schema

RecordResultSet

public RecordResultSet(RecordResultSet resultSet,
                       RepositorySchema repositoryMetadata)
Constructs with the specified parameters.

Parameters:
resultSet - the result set
repositoryMetadata - the repository schema
Method Detail

getRecords

public Record[] getRecords()
Return array of records stored in this result set

Returns:
array of records

getRecord

public Record getRecord(int index)
                 throws IllegalArgumentException
Get record at the specified position in the result set

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

getRecordMetadata

public TableSchema getRecordMetadata()
Get metadata of the table the all results belongs to

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

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
Overrides:
getMetadata in class AbstractResultSet

setRecords

public void setRecords(Record[] records)
Set records to result set

Parameters:
records - the list of records

getTableId

public TableId getTableId()
Returns the ID of table all records in the set belong to

Returns:
table ID


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.