org.LexGrid.LexBIG.caCore.applicationservice.impl
Class PaginationHelper

java.lang.Object
  extended by org.LexGrid.LexBIG.caCore.applicationservice.impl.PaginationHelper

public class PaginationHelper
extends java.lang.Object

Class to enable pagination over multiple Coding Schemes (databases).

Author:
Kevin Peterson

Constructor Summary
PaginationHelper()
           
 
Method Summary
 LexEVSApplicationServiceImpl getLexEVSApplicationService()
           
 int getMaxResultsPerQuery()
           
 Response getResponseFromMultipleCodingSchemeQuery(Request request, java.util.List<LexEVSDAO> daoList, int maxToReturn)
          Return the results (Correctly paged) from multipe databases.
 void setLexEVSApplicationService(LexEVSApplicationServiceImpl lexEVSApplicationService)
           
 void setMaxResultsPerQuery(int maxResultsPerQuery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaginationHelper

public PaginationHelper()
Method Detail

getResponseFromMultipleCodingSchemeQuery

public Response getResponseFromMultipleCodingSchemeQuery(Request request,
                                                         java.util.List<LexEVSDAO> daoList,
                                                         int maxToReturn)
                                                  throws java.lang.Exception
Return the results (Correctly paged) from multipe databases.

Parameters:
request - The Request being processed
daoList - List of available DAOs
maxToReturn - Maximum results to return per query, i.e. page size
Returns:
Paged results
Throws:
java.lang.Exception

getLexEVSApplicationService

public LexEVSApplicationServiceImpl getLexEVSApplicationService()

setLexEVSApplicationService

public void setLexEVSApplicationService(LexEVSApplicationServiceImpl lexEVSApplicationService)

getMaxResultsPerQuery

public int getMaxResultsPerQuery()

setMaxResultsPerQuery

public void setMaxResultsPerQuery(int maxResultsPerQuery)