com.ibm.ccd.ui.taglib.dataobjects
Class ResultData

java.lang.Object
  extended by com.ibm.ccd.ui.taglib.dataobjects.ResultData

public class ResultData
extends java.lang.Object

Represents the Results of an action like Search, Lookup This class provides the detail information about the results data like
MetaData : The result elements name, type etc.
ControlData : Start,End indexes, Current and TotalSize of the results
ResultData : The current result set associated

Version:
1.0

Constructor Summary
ResultData()
          Constructs an empty ResutlData
ResultData(java.util.ArrayList aResultMetaData, java.util.ArrayList aResultRowData)
          Constructs ResutlData with the specified metadata and resultrows
 
Method Summary
 java.util.ArrayList getResultMetaData()
          Returns the MetaData associated with the current results
 ResultMetaData getResultMetaData(int index)
          Returns the MetaData associated with the current results
 java.util.ArrayList getResultRowData()
          Returns the ResultData associated with the current results
 ResultRowData getResultRowData(int index)
          Returns the ResultRow at the specidied index
 long getTotalResultSize()
          Returns the total result size associated with the current results
 void setResultMetaData(java.util.ArrayList aResultMetaData)
          Sets the metadata for the current results
 void setResultRowData(java.util.ArrayList aResultRowData)
          Sets the resultdata for the current results
 void setTotalResultSize(long totalResutltSize)
          Sets the total size of the current search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultData

public ResultData()
Constructs an empty ResutlData


ResultData

public ResultData(java.util.ArrayList aResultMetaData,
                  java.util.ArrayList aResultRowData)
Constructs ResutlData with the specified metadata and resultrows

Parameters:
aResultMetaData -
aResultRowData -
Method Detail

getResultMetaData

public java.util.ArrayList getResultMetaData()
Returns the MetaData associated with the current results

Returns:
ArrayList of Metadata elements

getResultMetaData

public ResultMetaData getResultMetaData(int index)
Returns the MetaData associated with the current results

Parameters:
index -
Returns:
ArrayList of Metadata elements

getResultRowData

public java.util.ArrayList getResultRowData()
Returns the ResultData associated with the current results

Returns:
ArrayList , Array of Result Rows

getResultRowData

public ResultRowData getResultRowData(int index)
Returns the ResultRow at the specidied index

Parameters:
index - of the ResultRows
Returns:
ResultRowData at the given index

setResultMetaData

public void setResultMetaData(java.util.ArrayList aResultMetaData)
Sets the metadata for the current results

Parameters:
aResultMetaData - of MetadataElements

setResultRowData

public void setResultRowData(java.util.ArrayList aResultRowData)
Sets the resultdata for the current results

Parameters:
aResultRowData - of Search Result Row Elements

getTotalResultSize

public long getTotalResultSize()
Returns the total result size associated with the current results

Returns:
int, Total result set size

setTotalResultSize

public void setTotalResultSize(long totalResutltSize)
Sets the total size of the current search.

Parameters:
totalResutltSize - , total result size