com.bigllc.retsiq.simpleclient
Class RecordCollectionResponseHandler

java.lang.Object
  extended by com.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler
      extended by com.bigllc.retsiq.simpleclient.RecordCollectionResponseHandler
All Implemented Interfaces:
SearchResponseHandler

public class RecordCollectionResponseHandler
extends AbstractSearchResponseHandler

Search handler that collects all the records in a response and returns as a list of SearchRecord objects.

Author:
Marc G. Smith

Field Summary
 
Fields inherited from class com.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler
columnNameIndex, columns, currentRow, hasMoreRecords, path, query, recordCount, recordsInResponse, responseDelimiter, responseDelimiterHex, select, session
 
Constructor Summary
RecordCollectionResponseHandler()
           
 
Method Summary
 void dataChild(SearchRecord record)
          Override this method if derived handler wants to receive notification of data().
 java.util.List<SearchRecord> getRecords()
          Get all the records returned in the response.
 
Methods inherited from class com.bigllc.retsiq.simpleclient.AbstractSearchResponseHandler
columns, columnsChild, count, countChild, data, delimiter, delimiterChild, done, getColumns, getHasMoreRecords, getPath, getQuery, getRecordCount, getRecordsInResponse, getResponseDelimiter, getResponseDelimiterHex, getSelect, getSession, hasMoreData, hasMoreDataChild, noRecordsFound, noRecordsFoundChild, responseCode, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordCollectionResponseHandler

public RecordCollectionResponseHandler()
Method Detail

getRecords

public java.util.List<SearchRecord> getRecords()
Get all the records returned in the response.

Returns:
A list of the records in the response.

dataChild

public void dataChild(SearchRecord record)
Description copied from class: AbstractSearchResponseHandler
Override this method if derived handler wants to receive notification of data().

Specified by:
dataChild in class AbstractSearchResponseHandler
See Also:
AbstractSearchResponseHandler.dataChild(SearchRecord)