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
public class PersistedJpaBundleProvider
extends Object
implements ca.uhn.fhir.rest.api.server.IBundleProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ca.uhn.fhir.rest.api.server.RequestDetails
protected HapiTransactionService
-
Constructor Summary
ConstructorDescriptionPersistedJpaBundleProvider
(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) boolean
Returns false if the entity can't be foundca.uhn.fhir.model.primitive.InstantDt
protected final RequestPartitionId
List
<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 Search
getUuid()
protected boolean
void
setContext
(ca.uhn.fhir.context.FhirContext theContext) void
setDaoRegistryForUnitTest
(DaoRegistry theDaoRegistry) void
setEntityManager
(jakarta.persistence.EntityManager theEntityManager) void
setInterceptorBroadcaster
(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster) void
setRequestPartitionHelperSvcForUnitTest
(IRequestPartitionHelperSvc theRequestPartitionHelperSvc) void
setRequestPartitionId
(RequestPartitionId theRequestPartitionId) void
setSearchBuilderFactoryForUnitTest
(SearchBuilderFactory theSearchBuilderFactory) void
setSearchCacheSvcForUnitTest
(ISearchCacheSvc theSearchCacheSvc) void
setSearchCoordinatorSvcForUnitTest
(ISearchCoordinatorSvc theSearchCoordinatorSvc) protected void
setSearchEntity
(Search theSearchEntity) void
setStorageSettingsForUnitTest
(JpaStorageSettings theStorageSettings) void
setTxServiceForUnitTest
(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, wait
Methods inherited from interface ca.uhn.fhir.rest.api.server.IBundleProvider
getAllResourceIds, getAllResources, getCurrentPageId, getCurrentPageOffset, getCurrentPageSize, getNextPageId, getPreviousPageId, 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:
getPublished
in 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:
getResources
in 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:
getResources
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getUuid
- Specified by:
getUuid
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
getCacheStatus
-
preferredPageSize
- Specified by:
preferredPageSize
in interfaceca.uhn.fhir.rest.api.server.IBundleProvider
-
setContext
-
setEntityManager
-
setSearchCoordinatorSvcForUnitTest
-
setTxServiceForUnitTest
-
size
- Specified by:
size
in 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
-