com.sap.mdm.data
Class HierResultSet

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

public class HierResultSet
extends RecordResultSet

The HierResultSet represents the result set of hierarchical nodes

See Also:
RecordResultSet

Constructor Summary
HierResultSet()
          Empty Constructor
HierResultSet(HierNode[] nodes, RepositorySchema repositoryMetadata, TableId tableId)
          Constructs with the specified parameters.
HierResultSet(HierNode[] nodes, TableId tableId)
          Constructs with the specified parameter.
HierResultSet(HierResultSet resultSet, RepositorySchema repositoryMetadata)
          Constructs with the specified parameters.
HierResultSet(RepositorySchema repositoryMetadata, TableId tableId)
          Constructs with the specified repository schema.
 
Method Summary
 TableSchema getHierMetadata()
          Get metadata of the table the all results belongs to
 HierNode getHierNode(int index)
          Get hierarchical node at the specified position in the result set
 HierNode[] getHierNodes()
          Return array of hierarchical nodes stored in this result set
 
Methods inherited from class com.sap.mdm.data.RecordResultSet
getMetadata, getRecord, getRecordMetadata, getRecords, getTableId, setRecords
 
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

HierResultSet

public HierResultSet()
Empty Constructor


HierResultSet

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

Parameters:
repositoryMetadata - the repository schema
tableId - ID of tables all nodes belong to

HierResultSet

public HierResultSet(HierNode[] nodes,
                     TableId tableId)
Constructs with the specified parameter.

Parameters:
nodes - the list of hierarchy nodes
tableId - ID of tables all nodes belong to

HierResultSet

public HierResultSet(HierNode[] nodes,
                     RepositorySchema repositoryMetadata,
                     TableId tableId)
Constructs with the specified parameters.

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

HierResultSet

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

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

getHierNodes

public HierNode[] getHierNodes()
Return array of hierarchical nodes stored in this result set

Returns:
array of hierarchical nodes

getHierNode

public HierNode getHierNode(int index)
                     throws IllegalArgumentException
Get hierarchical node at the specified position in the result set

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

getHierMetadata

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

Returns:
table 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.