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

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

public class ResultRowData
extends java.lang.Object

Represents the ResultSet (A Row or ResultSet containtaing cells of result elements) associated with the Results This class provides the information about result sets
Each search result represents a row in the results and provides the information of result elements (cells/colums) as a hashMap and reference of the result object

Version:
1.0

Constructor Summary
ResultRowData()
          Constructs an empty ResultRowData
ResultRowData(java.lang.Object aRowReference, java.util.HashMap aRowElements)
          Constructs the ResultRowData with the specified referencebean and rowElements map
 
Method Summary
 void addElement(java.lang.String name, java.lang.Object value)
          Adds the element to rowdata
 java.lang.Object getElementValue(java.lang.String elementName)
          Returns Value of the given element name If there is no element for this name , then returns null
 java.util.HashMap getRowElements()
          Returns the HashMap of search result elemetns of this row
 java.lang.Object getRowReference()
          Returns the ReferenceObject associated with the current result row
 void removeElement(java.lang.String name)
          Removes the element from rowdata
 void setRowElements(java.util.HashMap aRowElements)
          Sets the HashMap of search result elements of this row
 void setRowReference(java.lang.Object aRowReference)
          Sets the ReferenceObject associated with the current result row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultRowData

public ResultRowData()
Constructs an empty ResultRowData


ResultRowData

public ResultRowData(java.lang.Object aRowReference,
                     java.util.HashMap aRowElements)
Constructs the ResultRowData with the specified referencebean and rowElements map

Parameters:
aRowReference - - The reference of the row
aRowElements - - The elements(column elements) HashMap of this row
Method Detail

getRowReference

public java.lang.Object getRowReference()
Returns the ReferenceObject associated with the current result row

Returns:
Object, the refernced object of the row

getRowElements

public java.util.HashMap getRowElements()
Returns the HashMap of search result elemetns of this row

Returns:
HashMap, being key as name and value as the result value of the element

getElementValue

public java.lang.Object getElementValue(java.lang.String elementName)
Returns Value of the given element name If there is no element for this name , then returns null

Parameters:
elementName - , The name of the element
Returns:
Cell Element , The result value of the element

setRowReference

public void setRowReference(java.lang.Object aRowReference)
Sets the ReferenceObject associated with the current result row

Parameters:
aRowReference - , the refernce for this result row

addElement

public void addElement(java.lang.String name,
                       java.lang.Object value)
Adds the element to rowdata

Parameters:
name - , Element Name of type String
value - , Element value of type String

removeElement

public void removeElement(java.lang.String name)
Removes the element from rowdata

Parameters:
name - , Element Name of type String

setRowElements

public void setRowElements(java.util.HashMap aRowElements)
Sets the HashMap of search result elements of this row

Parameters:
aRowElements - , being key as name and value as the result value of the element