Class SearchWholeSystemQuery
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.domain.SearchQuery
-
- org.linuxforhealth.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) boolean
addPagination
(package private) java.util.List<SearchQuery>
domainModels
(package private) boolean
isCountQuery
(package private) java.util.List<DomainSortParameter>
sortParameters
-
Fields inherited from class org.linuxforhealth.fhir.persistence.jdbc.domain.SearchQuery
extensions, INCLUDE_RESOURCE_TYPE_ID
-
-
Constructor Summary
Constructors Constructor Description SearchWholeSystemQuery(java.util.List<SearchQuery> domainModels, boolean isCountQuery, boolean addPagination)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DomainSortParameter dsp)
Add the given sort parameter to the sortParameters list.<T> T
getRoot(SearchQueryVisitor<T> visitor)
Process the logical query definition through the visitor<T> T
visit(SearchQueryVisitor<T> visitor)
Get the root query and attach the parameter filters to it-
Methods inherited from class org.linuxforhealth.fhir.persistence.jdbc.domain.SearchQuery
add, add, getRootResourceType, visitExtensions, visitSearchParams
-
-
-
-
Field Detail
-
domainModels
java.util.List<SearchQuery> domainModels
-
isCountQuery
boolean isCountQuery
-
addPagination
boolean addPagination
-
sortParameters
final java.util.List<DomainSortParameter> sortParameters
-
-
Constructor Detail
-
SearchWholeSystemQuery
public SearchWholeSystemQuery(java.util.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:SearchQuery
Process the logical query definition through the visitor- Specified by:
getRoot
in classSearchQuery
- Returns:
-
visit
public <T> T visit(SearchQueryVisitor<T> visitor) throws FHIRPersistenceException
Description copied from class:SearchQuery
Get the root query and attach the parameter filters to it- Overrides:
visit
in classSearchQuery
- Returns:
- Throws:
FHIRPersistenceException
-
-