com.bigllc.retsiq.simpleclient
Class SearchRecord

java.lang.Object
  extended by com.bigllc.retsiq.simpleclient.SearchRecord

public class SearchRecord
extends java.lang.Object

Search record bean. Provides a record with mappings to the column names.

Author:
Marc G. Smith

Method Summary
 java.util.List<java.lang.String> getAllValues()
          Get all the fields for this record.
 java.util.Map<java.lang.String,java.lang.String> getRecordMap()
          Get all the fields for this record as a map with the field name as the key.
 java.lang.String getValue(int index)
          Get the value by it's index.
 java.lang.String getValue(java.lang.String column)
          Get the value by the field name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getValue

public java.lang.String getValue(int index)
Get the value by it's index. The value will match the position from the columns list returned by the handler that generated this record.

Parameters:
index - the index of the field to retrieve.
Returns:
the value of the field at the given index.

getValue

public java.lang.String getValue(java.lang.String column)
Get the value by the field name.

Parameters:
column - the field name.
Returns:
the value of the field for the column or null if not found.

getAllValues

public java.util.List<java.lang.String> getAllValues()
Get all the fields for this record. The order will match that for the columns supplied by the handler that generated this record.


getRecordMap

public java.util.Map<java.lang.String,java.lang.String> getRecordMap()
Get all the fields for this record as a map with the field name as the key.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object