
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 SummaryFields
- 
Method SummaryModifier 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) voidloadResourcesByPid(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) booleanTrue if the results should have a 'total' valuevoidsetDeduplicateInDatabase(boolean theShouldDeduplicateInDB) voidsetFetchSize(int theFetchSize) How many results may be fetched at oncevoidsetMaxResultsToFetch(Integer theMaxResultsToFetch) voidsetPreviouslyAddedResourcePids(List<T> thePreviouslyAddedResourcePids) voidsetRequireTotal(boolean theRequireTotal) 
- 
Field Details- 
ourLog
- 
SEARCH_BUILDER_BEAN_NAME- See Also:
 
 
- 
- 
Method Details- 
createQueryIResultIterator<T> createQuery(SearchParameterMap theParams, SearchRuntimeDetails theSearchRuntime, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull RequestPartitionId theRequestPartitionId) 
- 
createQueryStreamdefault 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.
- 
createCountQueryLong createCountQuery(SearchParameterMap theParams, String theSearchUuid, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) 
- 
setMaxResultsToFetch
- 
setDeduplicateInDatabase
- 
setRequireTotal
- 
requiresTotalboolean requiresTotal()True if the results should have a 'total' value
- 
loadResourcesByPidvoid 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) 
- 
loadResourcesByPiddefault 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
- 
setFetchSizeHow many results may be fetched at once
- 
setPreviouslyAddedResourcePids
 
-