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) java.util.List<DomainSortParameter>sortParameters-
Fields inherited from class com.ibm.fhir.persistence.jdbc.domain.SearchQuery
extensions, INCLUDE_RESOURCE_TYPE_ID
-
-
Constructor Summary
Constructors Constructor Description SearchSortQuery(java.lang.String resourceType)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(DomainSortParameter dsp)Add the given sort parameter sp 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
-
sortParameters
final java.util.List<DomainSortParameter> sortParameters
-
-
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: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
-
-