Package com.ibm.fhir.persistence.util
Interface QueryBuilder<T>
-
- Type Parameters:
T
-
- All Known Implementing Classes:
AbstractQueryBuilder
,JDBCQueryBuilder
public interface QueryBuilder<T>
Defines methods for for building persistence layer queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
buildQuery(Class<?> resourceType, FHIRSearchContext searchContext)
Build and return query for the passed resource type and search parameters.
-
-
-
Method Detail
-
buildQuery
T buildQuery(Class<?> resourceType, FHIRSearchContext searchContext) throws FHIRPersistenceException, Exception
Build and return query for the passed resource type and search parameters.- Parameters:
resourceType
- A FHIR Resource subclass.searchContext
- A search context that contains a List of search parameters to be used for constructing the query.- Returns:
- An instance of T representing the constructed query.
- Throws:
FHIRPersistenceException
- thrown for any non-recoverable failure that occurs during query construction.Exception
-
-