Class PersistedJpaBundleProvider

    • Field Detail

      • myTxManager

        @Autowired
        protected org.springframework.transaction.PlatformTransactionManager myTxManager
    • Method Detail

      • clearCachedDataForUnitTest

        public void clearCachedDataForUnitTest()
        When HAPI FHIR server is running "for real", a new instance of the bundle provider is created to serve every HTTP request, so it's ok for us to keep state in here and expect that it will go away. But in unit tests we keep this object around for longer sometimes.
      • doSearchOrEverything

        protected List<org.hl7.fhir.instance.model.api.IBaseResource> doSearchOrEverything​(int theFromIndex,
                                                                                           int theToIndex)
      • getPublished

        public ca.uhn.fhir.model.primitive.InstantDt getPublished()
        Specified by:
        getPublished in interface ca.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 interface ca.uhn.fhir.rest.api.server.IBundleProvider
      • getUuid

        public String getUuid()
        Specified by:
        getUuid in interface ca.uhn.fhir.rest.api.server.IBundleProvider
      • preferredPageSize

        public Integer preferredPageSize()
        Specified by:
        preferredPageSize in interface ca.uhn.fhir.rest.api.server.IBundleProvider
      • setContext

        public void setContext​(ca.uhn.fhir.context.FhirContext theContext)
      • setEntityManager

        public void setEntityManager​(javax.persistence.EntityManager theEntityManager)
      • setTxManagerForUnitTest

        public void setTxManagerForUnitTest​(org.springframework.transaction.PlatformTransactionManager theTxManager)
      • size

        public Integer size()
        Specified by:
        size in interface ca.uhn.fhir.rest.api.server.IBundleProvider
      • toResourceList

        protected List<org.hl7.fhir.instance.model.api.IBaseResource> toResourceList​(ISearchBuilder theSearchBuilder,
                                                                                     List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> thePids)
      • setInterceptorBroadcaster

        public void setInterceptorBroadcaster​(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster)
      • setDaoConfigForUnitTest

        public void setDaoConfigForUnitTest​(ca.uhn.fhir.jpa.api.config.DaoConfig theDaoConfig)