Package ca.uhn.fhir.jpa.dao
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 Summary
FieldsFields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
INDEX_STATUS_INDEXED, INDEX_STATUS_INDEXING_FAILED, myDaoRegistry, myDeleteConflictService, myEntityManager, myForcedIdDao, myIdHelperService, myInMemoryResourceMatcher, myInterceptorBroadcaster, myResourceHistoryTableDao, myResourceProvenanceDao, myResourceTableDao, myResourceTagDao, mySearchCoordinatorSvc, myTerminologySvc, NS_JPA_PROFILE
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
myDaoConfig, myFhirContext, myModelConfig, myResourceVersionSvc, mySearchParamRegistry, OO_SEVERITY_ERROR, OO_SEVERITY_INFO, OO_SEVERITY_WARN
Fields inherited from interface ca.uhn.fhir.jpa.api.dao.IDao
CURRENTLY_REINDEXING, RESOURCE_PID, RESOURCE_PID_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.jpa.api.model.ExpungeOutcome
expunge
(ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) protected String
ca.uhn.fhir.rest.api.server.IBundleProvider
history
(Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) void
setTransactionProcessorForUnitTest
(TransactionProcessor theTransactionProcessor) void
start()
transaction
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest) transactionNested
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest) Methods inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
addPidToResource, decodeResource, encodeResource, getApplicationContext, getConfig, getContext, getContext, getInterceptorBroadcaster, getTagOrNull, history, isLogicalReference, parseContentTextIntoWords, populateFullTextFields, populateResourceIntoEntity, postDelete, postPersist, postUpdate, readEntity, setApplicationContext, setContext, setDaoConfigForUnitTest, setDaoSearchParamSynchronizer, setDisableIncrementOnUpdateForUnitTest, setEntityManager, setPartitionSettingsForUnitTest, setResourceHistoryTableDao, setSearchParamPresenceSvc, setSearchParamWithInlineReferencesExtractor, setValidationDisabledForUnitTest, shouldDroppedTagBeRemovedOnUpdate, toResource, toResource, toResourceName, toTagDefinitionMemoryCacheKey, updateEntity, updateEntityForDelete, updateInternal, updateResourceMetadata, validateMetaCount, validateResourceForStorage, validateResourceType
Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createResourceGoneException, doCallHooks, extractReferencesToAutoVersion, markRequestAsProcessingSubRequest, notifyInterceptors, preProcessResourceForStorage, preProcessResourceForStorage, setSearchParamRegistry, toMethodOutcome, toMethodOutcomeLazy, translateRawParameters
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.jpa.api.dao.IDao
getContext, toResource, toResource
Methods inherited from interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao
metaGetOperation, processMessage
-
Field Details
-
myResourceCountsCache
-
-
Constructor Details
-
BaseHapiFhirSystemDao
public BaseHapiFhirSystemDao()
-
-
Method Details
-
setTransactionProcessorForUnitTest
-
start
- Overrides:
start
in classBaseHapiFhirDao<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) -
getResourceCounts
-
getResourceCountsFromCache
-
history
-
transaction
@Transactional(propagation=NEVER) public T transaction(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest) -
transactionNested
@Transactional(propagation=MANDATORY) public T transactionNested(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest) -
getResourceName
- Specified by:
getResourceName
in classca.uhn.fhir.jpa.dao.BaseStorageDao
-