Class SearchDataQuery
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.domain.SearchQuery
-
- org.linuxforhealth.fhir.persistence.jdbc.domain.SearchDataQuery
-
public class SearchDataQuery extends SearchQuery
Domain model of the FHIR search context representing the query used to perform the search operation in the database. The query built by this class fetches the data and handles pagination
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
addPagination
(package private) boolean
addSorting
(package private) int
resourceTypeId
-
Fields inherited from class org.linuxforhealth.fhir.persistence.jdbc.domain.SearchQuery
extensions, INCLUDE_RESOURCE_TYPE_ID
-
-
Constructor Summary
Constructors Constructor Description SearchDataQuery(java.lang.String resourceType)
Public constructorSearchDataQuery(java.lang.String resourceType, boolean addSorting, boolean addPagination, int resourceTypeId)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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
-
-
-
-
Constructor Detail
-
SearchDataQuery
public SearchDataQuery(java.lang.String resourceType)
Public constructor- Parameters:
resourceType
-
-
SearchDataQuery
public SearchDataQuery(java.lang.String resourceType, boolean addSorting, boolean addPagination, int resourceTypeId)
Public constructor- Parameters:
resourceType
-addSorting
-addPagination
-
-
-
Method Detail
-
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
-
-