Class BaseStorageDao

    • Method Detail

      • setSearchParamRegistry

        public void setSearchParamRegistry​(ca.uhn.fhir.rest.server.util.ISearchParamRegistry theSearchParamRegistry)
      • preProcessResourceForStorage

        protected void preProcessResourceForStorage​(org.hl7.fhir.instance.model.api.IBaseResource theResource,
                                                    ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails,
                                                    ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails,
                                                    boolean thePerformIndexing)
        May be overridden by subclasses to validate resources prior to storage
        Parameters:
        theResource - The resource that is about to be stored
        Since:
        5.3.0
      • toMethodOutcomeLazy

        protected ca.uhn.fhir.jpa.api.model.DaoMethodOutcome toMethodOutcomeLazy​(ca.uhn.fhir.rest.api.server.RequestDetails theRequest,
                                                                                 ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId theResourcePersistentId,
                                                                                 @Nonnull
                                                                                 Supplier<ca.uhn.fhir.jpa.api.model.LazyDaoMethodOutcome.EntityAndResource> theEntity,
                                                                                 Supplier<org.hl7.fhir.instance.model.api.IIdType> theIdSupplier)
      • doCallHooks

        protected void doCallHooks​(ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails,
                                   ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails,
                                   ca.uhn.fhir.interceptor.api.Pointcut thePointcut,
                                   ca.uhn.fhir.interceptor.api.HookParams theParams)
      • getInterceptorBroadcaster

        protected abstract ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster getInterceptorBroadcaster()
      • getConfig

        protected abstract ca.uhn.fhir.jpa.api.config.DaoConfig getConfig()
        Provide the DaoConfig
      • getResourceName

        @Nullable
        protected abstract String getResourceName()
        Returns the resource type for this DAO, or null if this is a system-level DAO
      • getContext

        protected abstract ca.uhn.fhir.context.FhirContext getContext()
        Provides the FHIR context