uk.nominet.catnap.dao
Class CatnapFinderPageableResultsExtractor

java.lang.Object
  extended byuk.nominet.catnap.dao.CatnapAbstractFinderResultsExtractor
      extended byuk.nominet.catnap.dao.CatnapFinderPageableResultsExtractor
All Implemented Interfaces:
org.springframework.jdbc.core.ResultSetExtractor

public class CatnapFinderPageableResultsExtractor
extends CatnapAbstractFinderResultsExtractor

Pageable version of the catnap finder results extractor for supporting google type paging.


Field Summary
 
Fields inherited from class uk.nominet.catnap.dao.CatnapAbstractFinderResultsExtractor
cachedInstances, entityName, maxResults, sessionData
 
Method Summary
 java.lang.Object extractData(java.sql.ResultSet resultSet)
          Main extraction method.
 
Methods inherited from class uk.nominet.catnap.dao.CatnapAbstractFinderResultsExtractor
mapRow, processRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractData

public java.lang.Object extractData(java.sql.ResultSet resultSet)
                             throws java.sql.SQLException,
                                    org.springframework.dao.DataAccessException
Main extraction method. This is used to manually loop through the result set passed in, deferring to the base map row routine to map each row in turn. This is required rather than simply using a row mapper to allow us to restrict the number of returned results to the required page of data.

Parameters:
resultSet -
Returns:
- The list thus constructed by the extraction process.
Throws:
java.sql.SQLException
org.springframework.dao.DataAccessException