Class SearchWholeSystemQuery
- java.lang.Object
 - 
- com.ibm.fhir.persistence.jdbc.domain.SearchQuery
 - 
- com.ibm.fhir.persistence.jdbc.domain.SearchWholeSystemQuery
 
 
 
- 
public class SearchWholeSystemQuery extends SearchQuery
A domain model of the query used to retrieve the count or data for a particular whole-system search. 
- 
- 
Field Summary
Fields Modifier and Type Field Description (package private) booleanaddPagination(package private) List<SearchQuery>domainModels(package private) booleanisCountQuery(package private) List<DomainSortParameter>sortParameters 
- 
Constructor Summary
Constructors Constructor Description SearchWholeSystemQuery(List<SearchQuery> domainModels, boolean isCountQuery, boolean addPagination)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DomainSortParameter dsp)Add the given sort parameter to the sortParameters list.<T> TgetRoot(SearchQueryVisitor<T> visitor)Process the logical query definition through the visitor<T> Tvisit(SearchQueryVisitor<T> visitor)Get the root query and attach the parameter filters to it- 
Methods inherited from class com.ibm.fhir.persistence.jdbc.domain.SearchQuery
add, add, getRootResourceType, visitExtensions, visitSearchParams 
 - 
 
 - 
 
- 
- 
Field Detail
- 
domainModels
List<SearchQuery> domainModels
 
- 
isCountQuery
boolean isCountQuery
 
- 
addPagination
boolean addPagination
 
- 
sortParameters
final List<DomainSortParameter> sortParameters
 
 - 
 
- 
Constructor Detail
- 
SearchWholeSystemQuery
public SearchWholeSystemQuery(List<SearchQuery> domainModels, boolean isCountQuery, boolean addPagination)
Public constructor- Parameters:
 domainModels-isCountQuery-addPagination-
 
 - 
 
- 
Method Detail
- 
add
public void add(DomainSortParameter dsp)
Add the given sort parameter to the sortParameters list.- Parameters:
 dsp-
 
- 
getRoot
public <T> T getRoot(SearchQueryVisitor<T> visitor)
Description copied from class:SearchQueryProcess the logical query definition through the visitor- Specified by:
 getRootin classSearchQuery- Returns:
 
 
- 
visit
public <T> T visit(SearchQueryVisitor<T> visitor) throws FHIRPersistenceException
Description copied from class:SearchQueryGet the root query and attach the parameter filters to it- Overrides:
 visitin classSearchQuery- Returns:
 - Throws:
 FHIRPersistenceException
 
 - 
 
 -