Class SearchSortQuery
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.domain.SearchQuery
-
- com.ibm.fhir.persistence.jdbc.domain.SearchSortQuery
-
public class SearchSortQuery extends SearchQuery
Domain model of the FHIR search context representing the query used to perform the search sort operation in the database. This query provides a list of ids ordered by the requested search parameters and these ids are then used in a subsequent fetch query
-
-
Field Summary
Fields Modifier and Type Field Description (package private) List<DomainSortParameter>
sortParameters
-
Constructor Summary
Constructors Constructor Description SearchSortQuery(String resourceType)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(DomainSortParameter dsp)
Add the given sort parameter sp 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 com.ibm.fhir.persistence.jdbc.domain.SearchQuery
add, add, getRootResourceType, visitExtensions, visitSearchParams
-
-
-
-
Field Detail
-
sortParameters
final List<DomainSortParameter> sortParameters
-
-
Constructor Detail
-
SearchSortQuery
public SearchSortQuery(String resourceType)
Public constructor- Parameters:
resourceType
-
-
-
Method Detail
-
add
public void add(DomainSortParameter dsp)
Add the given sort parameter sp 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
-
-