Package ca.uhn.fhir.jpa.dao
Interface ISearchBuilder<T extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<?>>
public interface ISearchBuilder<T extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<?>>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCountQuery
(SearchParameterMap theParams, String theSearchUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) createQuery
(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) createQueryStream
(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) Stream equivalent of createQuery.loadIncludes
(ca.uhn.fhir.context.FhirContext theContext, jakarta.persistence.EntityManager theEntityManager, Collection<T> theMatches, Collection<ca.uhn.fhir.model.api.Include> theRevIncludes, boolean theReverseMode, ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated, String theSearchIdOrDescription, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Integer theMaxCount) Deprecated.loadIncludes
(SearchBuilderLoadIncludesParameters<T> theParameters) default List
<org.hl7.fhir.instance.model.api.IBaseResource> loadResourcesByPid
(Collection<T> thePids, ca.uhn.fhir.rest.api.server.RequestDetails theDetails) void
loadResourcesByPid
(Collection<T> thePids, Collection<T> theIncludedPids, List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceListToPopulate, boolean theForHistoryOperation, ca.uhn.fhir.rest.api.server.RequestDetails theDetails) void
setFetchSize
(int theFetchSize) How many results may be fetched at oncevoid
setMaxResultsToFetch
(Integer theMaxResultsToFetch) void
setPreviouslyAddedResourcePids
(List<T> thePreviouslyAddedResourcePids)
-
Field Details
-
ourLog
-
SEARCH_BUILDER_BEAN_NAME
- See Also:
-
-
Method Details
-
createQuery
IResultIterator<T> createQuery(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull RequestPartitionId theRequestPartitionId) -
createQueryStream
default Stream<T> createQueryStream(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull RequestPartitionId theRequestPartitionId) Stream equivalent of createQuery. Note: the Stream must be closed. -
createCountQuery
Long createCountQuery(SearchParameterMap theParams, String theSearchUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) -
setMaxResultsToFetch
-
loadResourcesByPid
void loadResourcesByPid(Collection<T> thePids, Collection<T> theIncludedPids, List<org.hl7.fhir.instance.model.api.IBaseResource> theResourceListToPopulate, boolean theForHistoryOperation, ca.uhn.fhir.rest.api.server.RequestDetails theDetails) -
loadResourcesByPid
default List<org.hl7.fhir.instance.model.api.IBaseResource> loadResourcesByPid(Collection<T> thePids, ca.uhn.fhir.rest.api.server.RequestDetails theDetails) -
loadIncludes
@Deprecated Set<T> loadIncludes(ca.uhn.fhir.context.FhirContext theContext, jakarta.persistence.EntityManager theEntityManager, Collection<T> theMatches, Collection<ca.uhn.fhir.model.api.Include> theRevIncludes, boolean theReverseMode, ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated, String theSearchIdOrDescription, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Integer theMaxCount) Deprecated.Use the loadIncludes that takes a parameters object instead. -
loadIncludes
-
setFetchSize
How many results may be fetched at once -
setPreviouslyAddedResourcePids
-