
Package ca.uhn.fhir.jpa.search
Class PersistedJpaBundleProvider
java.lang.Object
ca.uhn.fhir.jpa.search.PersistedJpaBundleProvider
- All Implemented Interfaces:
ca.uhn.fhir.rest.api.server.IBundleProvider
- Direct Known Subclasses:
PersistedJpaSearchFirstPageBundleProvider,PredicatedPersistedJpaBundleProvider
public class PersistedJpaBundleProvider
extends Object
implements ca.uhn.fhir.rest.api.server.IBundleProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ca.uhn.fhir.rest.api.server.RequestDetailsprotected HapiTransactionService -
Constructor Summary
ConstructorsConstructorDescriptionPersistedJpaBundleProvider(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Search theSearch) ConstructorPersistedJpaBundleProvider(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theSearchUuid) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.hl7.fhir.instance.model.api.IBaseResource> doSearchOrEverything(int theFromIndex, int theToIndex, ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) booleanReturns false if the entity can't be foundca.uhn.fhir.model.primitive.InstantDtprotected final RequestPartitionIdList<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex) List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex, ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) protected SearchgetUuid()protected booleanvoidsetContext(ca.uhn.fhir.context.FhirContext theContext) voidsetDaoRegistryForUnitTest(DaoRegistry theDaoRegistry) voidsetEntityManager(jakarta.persistence.EntityManager theEntityManager) voidsetInterceptorBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster) voidsetRequestPartitionHelperSvcForUnitTest(IRequestPartitionHelperSvc theRequestPartitionHelperSvc) voidsetRequestPartitionId(RequestPartitionId theRequestPartitionId) voidsetSearchBuilderFactoryForUnitTest(SearchBuilderFactory theSearchBuilderFactory) voidsetSearchCacheSvcForUnitTest(ISearchCacheSvc theSearchCacheSvc) voidsetSearchCoordinatorSvcForUnitTest(ISearchCoordinatorSvc theSearchCoordinatorSvc) protected voidsetSearchEntity(Search theSearchEntity) voidsetStorageSettingsForUnitTest(JpaStorageSettings theStorageSettings) voidsetTxServiceForUnitTest(HapiTransactionService theTxManager) size()protected List<org.hl7.fhir.instance.model.api.IBaseResource> toResourceList(ISearchBuilder theSearchBuilder, List<JpaPid> thePids, ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.api.server.IBundleProvider
containsAllResources, getAllResourceIds, getAllResources, getCurrentPageId, getCurrentPageOffset, getCurrentPageSize, getNextPageId, getPreviousPageId, getResourceListComplete, isEmpty, sizeOrThrowNpe
-
Field Details
-
myRequest
-
myTxService
-
-
Constructor Details
-
PersistedJpaBundleProvider
public PersistedJpaBundleProvider(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theSearchUuid) Constructor -
PersistedJpaBundleProvider
public PersistedJpaBundleProvider(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, Search theSearch) Constructor
-
-
Method Details
-
setRequestPartitionHelperSvcForUnitTest
public void setRequestPartitionHelperSvcForUnitTest(IRequestPartitionHelperSvc theRequestPartitionHelperSvc) -
getSearchEntityForTesting
-
getSearchEntity
-
setSearchEntity
-
getRequestPartitionId
-
setRequestPartitionId
-
doSearchOrEverything
protected List<org.hl7.fhir.instance.model.api.IBaseResource> doSearchOrEverything(int theFromIndex, int theToIndex, @Nonnull ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) -
ensureSearchEntityLoaded
Returns false if the entity can't be found -
getPublished
- Specified by:
getPublishedin interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getResources
@Nonnull public List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex) - Specified by:
getResourcesin interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getResources
public List<org.hl7.fhir.instance.model.api.IBaseResource> getResources(int theFromIndex, int theToIndex, @Nonnull ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) - Specified by:
getResourcesin interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getUuid
- Specified by:
getUuidin interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getCacheStatus
-
preferredPageSize
- Specified by:
preferredPageSizein interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
setContext
-
setEntityManager
-
setSearchCoordinatorSvcForUnitTest
-
setTxServiceForUnitTest
-
size
- Specified by:
sizein interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
hasIncludes
-
toResourceList
protected List<org.hl7.fhir.instance.model.api.IBaseResource> toResourceList(ISearchBuilder theSearchBuilder, List<JpaPid> thePids, ca.uhn.fhir.rest.server.method.ResponsePage.ResponsePageBuilder theResponsePageBuilder) -
setInterceptorBroadcaster
public void setInterceptorBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster) -
setSearchCacheSvcForUnitTest
-
setDaoRegistryForUnitTest
-
setStorageSettingsForUnitTest
-
setSearchBuilderFactoryForUnitTest
-