|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.caCore.applicationservice.impl.PaginationHelper
public class PaginationHelper
Class to enable pagination over multiple Coding Schemes (databases).
Field Summary | |
---|---|
(package private) LexEVSApplicationServiceImpl |
lexEVSApplicationService
|
(package private) int |
maxResultsPerQuery
|
Constructor Summary | |
---|---|
PaginationHelper()
|
Method Summary | |
---|---|
private gov.nih.nci.system.dao.Response |
combineIndividualDAOResponses(List<gov.nih.nci.system.dao.Response> responses)
Combine the responses from multipe DAOs into one Response. |
LexEVSApplicationServiceImpl |
getLexEVSApplicationService()
|
int |
getMaxResultsPerQuery()
|
gov.nih.nci.system.dao.Response |
getResponseFromMultipleCodingSchemeQuery(gov.nih.nci.system.dao.Request request,
List<LexEVSDAO> daoList,
int maxToReturn)
Return the results (Correctly paged) from multipe databases. |
private int |
getResultsCountInIndividualDAOForQuery(Object criteria,
LexEVSDAO dao)
Get the number of results in a given DAO for a given Criteria Query. |
private gov.nih.nci.system.dao.Response |
queryIndividualDAO(Object criteria,
LexEVSDAO dao,
int startRow,
int maxToReturn)
Get the results in a given DAO for a given Criteria Query. |
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 |
Field Detail |
---|
LexEVSApplicationServiceImpl lexEVSApplicationService
int maxResultsPerQuery
Constructor Detail |
---|
public PaginationHelper()
Method Detail |
---|
public gov.nih.nci.system.dao.Response getResponseFromMultipleCodingSchemeQuery(gov.nih.nci.system.dao.Request request, List<LexEVSDAO> daoList, int maxToReturn) throws Exception
request
- The Request being processeddaoList
- List of available DAOsmaxToReturn
- Maximum results to return per query, i.e. page size
Exception
private int getResultsCountInIndividualDAOForQuery(Object criteria, LexEVSDAO dao) throws gov.nih.nci.system.applicationservice.ApplicationException
criteria
- The Criteria to query.dao
- DAO used with this Criteria
gov.nih.nci.system.applicationservice.ApplicationException
private gov.nih.nci.system.dao.Response queryIndividualDAO(Object criteria, LexEVSDAO dao, int startRow, int maxToReturn) throws gov.nih.nci.system.applicationservice.ApplicationException
criteria
- The Criteria to query.dao
- DAO used with this CriteriastartRow
- The row to start the Query on.maxToReturn
- Page size
gov.nih.nci.system.applicationservice.ApplicationException
private gov.nih.nci.system.dao.Response combineIndividualDAOResponses(List<gov.nih.nci.system.dao.Response> responses)
responses
- Individual responses
public LexEVSApplicationServiceImpl getLexEVSApplicationService()
public void setLexEVSApplicationService(LexEVSApplicationServiceImpl lexEVSApplicationService)
public int getMaxResultsPerQuery()
public void setMaxResultsPerQuery(int maxResultsPerQuery)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |