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.BaseHapiFhirSystemDao<T,MT>
- All Implemented Interfaces:
IDao,IFhirSystemDao<T,MT>
- Direct Known Subclasses:
FhirSystemDaoDstu2,FhirSystemDaoDstu3,FhirSystemDaoR4,FhirSystemDaoR4B,FhirSystemDaoR5
public abstract class BaseHapiFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
extends BaseStorageDao
implements IFhirSystemDao<T,MT>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javax.persistence.criteria.Predicate[]protected javax.persistence.EntityManagerFields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
MESSAGE_KEY_DELETE_RESOURCE_ALREADY_DELETED, MESSAGE_KEY_DELETE_RESOURCE_NOT_EXISTING, myDaoRegistry, myFhirContext, myResourceVersionSvc, mySearchParamRegistry, myStorageSettings, OO_SEVERITY_ERROR, OO_SEVERITY_INFO, OO_SEVERITY_WARNFields inherited from interface ca.uhn.fhir.jpa.api.dao.IDao
CURRENTLY_REINDEXING, RESOURCE_PID, RESOURCE_PID_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpunge(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.context.FhirContextprotected ca.uhn.fhir.interceptor.api.IInterceptorBroadcasterprotected Stringprotected JpaStorageSettingsca.uhn.fhir.rest.api.server.IBundleProviderhistory(Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
voidpreFetchResources(List<P> theResolvedIds, boolean thePreFetchIndexes) voidsetStorageSettingsForUnitTest(JpaStorageSettings theStorageSettings) voidsetTransactionProcessorForUnitTest(TransactionProcessor theTransactionProcessor) 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.BaseStorageDao
clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createInfoOperationOutcome, createMethodOutcomeForResourceId, createOperationOutcome, createResourceGoneException, doCallHooks, extractReferencesToAutoVersion, markRequestAsProcessingSubRequest, populateOperationOutcomeForUpdate, preProcessResourceForStorage, preProcessResourceForStorage, setSearchParamRegistry, toMethodOutcome, toMethodOutcomeLazy, translateRawParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.jpa.api.dao.IFhirSystemDao
metaGetOperation, processMessage
-
Field Details
-
EMPTY_PREDICATE_ARRAY
-
myResourceCountsCache
-
myEntityManager
-
-
Constructor Details
-
BaseHapiFhirSystemDao
public BaseHapiFhirSystemDao()
-
-
Method Details
-
setTransactionProcessorForUnitTest
-
expunge
@Transactional(propagation=NEVER) public ExpungeOutcome expunge(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
expungein interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
getResourceCounts
- Specified by:
getResourceCountsin interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
getResourceCountsFromCache
- Specified by:
getResourceCountsFromCachein interfaceIFhirSystemDao<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:
historyin interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
transaction
- Specified by:
transactionin interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
transactionNested
public T transactionNested(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, T theRequest) - Specified by:
transactionNestedin interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
preFetchResources
public <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> void preFetchResources(List<P> theResolvedIds, boolean thePreFetchIndexes) - Specified by:
preFetchResourcesin interfaceIFhirSystemDao<T extends org.hl7.fhir.instance.model.api.IBaseBundle,MT>
-
getResourceName
- Specified by:
getResourceNamein classBaseStorageDao
-
getInterceptorBroadcaster
- Specified by:
getInterceptorBroadcasterin classBaseStorageDao
-
getStorageSettings
- Specified by:
getStorageSettingsin classBaseStorageDao
-
getContext
- Specified by:
getContextin interfaceIDao- Specified by:
getContextin classBaseStorageDao
-
setStorageSettingsForUnitTest
-