Class BaseHapiFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>

java.lang.Object
ca.uhn.fhir.jpa.dao.BaseStorageDao
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao<org.hl7.fhir.instance.model.api.IBaseResource>
ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao<T,MT>
All Implemented Interfaces:
ca.uhn.fhir.jpa.api.dao.IDao, ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T,MT>, ca.uhn.fhir.jpa.api.dao.IJpaDao<org.hl7.fhir.instance.model.api.IBaseResource>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
FhirSystemDaoDstu2, FhirSystemDaoDstu3, FhirSystemDaoR4, FhirSystemDaoR5

public abstract class BaseHapiFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT> extends BaseHapiFhirDao<org.hl7.fhir.instance.model.api.IBaseResource> implements ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T,MT>
  • Field Details

  • Constructor Details

  • Method Details

    • setTransactionProcessorForUnitTest

      public void setTransactionProcessorForUnitTest(TransactionProcessor theTransactionProcessor)
    • start

      @PostConstruct public void start()
      Overrides:
      start in class BaseHapiFhirDao<org.hl7.fhir.instance.model.api.IBaseResource>
    • expunge

      @Transactional(propagation=NEVER) public ca.uhn.fhir.jpa.api.model.ExpungeOutcome expunge(ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
      Specified by:
      expunge in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • getResourceCounts

      @Transactional(propagation=REQUIRED) public Map<String,Long> getResourceCounts()
      Specified by:
      getResourceCounts in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • getResourceCountsFromCache

      @Transactional(propagation=SUPPORTS) @Nullable public Map<String,Long> getResourceCountsFromCache()
      Specified by:
      getResourceCountsFromCache in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • history

      public ca.uhn.fhir.rest.api.server.IBundleProvider history(Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
      Specified by:
      history in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • transaction

      @Transactional(propagation=NEVER) public T transaction(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest)
      Specified by:
      transaction in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • transactionNested

      @Transactional(propagation=MANDATORY) public T transactionNested(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest)
      Specified by:
      transactionNested in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • preFetchResources

      @Transactional(propagation=MANDATORY) public void preFetchResources(List<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theResolvedIds)
      Specified by:
      preFetchResources in interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
    • getResourceName

      @Nullable protected String getResourceName()
      Specified by:
      getResourceName in class ca.uhn.fhir.jpa.dao.BaseStorageDao