Package ca.uhn.fhir.jpa.dao
Class BaseHapiFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
java.lang.Object
ca.uhn.fhir.jpa.dao.BaseStorageDao
ca.uhn.fhir.jpa.dao.BaseStorageResourceDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao<T>
- All Implemented Interfaces:
IDao
,IFhirResourceDao<T>
,IJpaDao<T>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
FhirResourceDaoSubscriptionDstu2
,FhirResourceDaoSubscriptionDstu3
,FhirResourceDaoSubscriptionR4
,FhirResourceDaoSubscriptionR4B
,FhirResourceDaoSubscriptionR5
,JpaResourceDao
,JpaResourceDaoBundle
,JpaResourceDaoCodeSystem
,JpaResourceDaoComposition
,JpaResourceDaoEncounter
,JpaResourceDaoObservation
,JpaResourceDaoPatient
,JpaResourceDaoSearchParameter
,JpaResourceDaoStructureDefinition
,JpaResourceDaoValueSet
public abstract class BaseHapiFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
extends BaseHapiFhirDao<T>
implements IFhirResourceDao<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
protected org.springframework.transaction.PlatformTransactionManager
protected IFulltextSearchSvc
protected HapiTransactionService
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
cacheTagDefinitionDao, INDEX_STATUS_INDEXED, INDEX_STATUS_INDEXING_FAILED, myCodingSpy, myDeleteConflictService, myEntityManager, myIdHelperService, myInMemoryResourceMatcher, myJpaStorageResourceParser, myPartitionSettings, myResourceHistoryCalculator, myResourceHistoryTableDao, myResourceLinkDao, myResourceTableDao, myResourceTagDao, mySearchCoordinatorSvc, myTerminologySvc, NS_JPA_PROFILE
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageResourceDao
STRICT_ERROR_HANDLER
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
MESSAGE_KEY_DELETE_RESOURCE_ALREADY_DELETED, MESSAGE_KEY_DELETE_RESOURCE_NOT_EXISTING, myFhirContext, myMetaTagSorter, myResourceVersionSvc, mySearchParamRegistry, myStorageSettings, 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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Usecreate(T, String, RequestDetails)
insteadcreate
(T theResource, String theIfNoneExist, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) create
(T theResource, String theIfNoneExist, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) delete
(org.hl7.fhir.instance.model.api.IIdType theId) Deprecated.Usedelete(IIdType, RequestDetails)
insteaddelete
(org.hl7.fhir.instance.model.api.IIdType theId, DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) delete
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) deleteByUrl
(String theUrl, DeleteConflictList deleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) This method gets called bydeleteByUrl(String, RequestDetails)
as well as by transaction processorsdeleteByUrl
(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
DeleteMethodOutcomedeletePidList
(String theUrl, Collection<P> theResourceIds, DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) protected DaoMethodOutcome
doCreateForPost
(T theResource, String theIfNoneExist, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) Called for FHIR create (POST) operationsprotected <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
voiddoMetaAddOperation
(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaAdd, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
voiddoMetaDeleteOperation
(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaDel, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) protected DaoMethodOutcome
doUpdateForUpdateOrPatch
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theResourceId, String theMatchUrl, boolean thePerformIndexing, boolean theForceUpdateVersion, T theResource, IBasePersistedResource theEntity, ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) expunge
(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId>
voidexpunge
(Collection<P> theResourceIds, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) expunge
(org.hl7.fhir.instance.model.api.IIdType theId, ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) forceExpungeInExistingTransaction
(org.hl7.fhir.instance.model.api.IIdType theId, ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected ca.uhn.fhir.rest.api.server.storage.IDeleteExpungeJobSubmitter
protected MatchResourceUrlService
protected String
getMessageSanitized
(String theKey, String theIdPart) protected IStorageResourceParser
protected HapiTransactionService
ca.uhn.fhir.rest.api.server.IBundleProvider
history
(Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.rest.api.server.IBundleProvider
history
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.param.HistorySearchDateRangeParam theHistorySearchDateRangeParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.rest.api.server.IBundleProvider
history
(org.hl7.fhir.instance.model.api.IIdType theId, Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) Deprecated.static void
invokeStoragePreAccessResources
(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theId, org.hl7.fhir.instance.model.api.IBaseResource theResource) static <T extends org.hl7.fhir.instance.model.api.IBaseResource>
TinvokeStoragePreShowResources
(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, T retVal) protected boolean
isPagingProviderDatabaseBacked
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTmetaAddOperation
(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaAdd, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTmetaDeleteOperation
(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaDel, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTmetaGetOperation
(Class<MT> theType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTmetaGetOperation
(Class<MT> theType, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected void
postUpdateTransaction
(ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) protected void
preDelete
(T theResourceToDelete, ResourceTable theEntityToDelete, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Subclasses may override to provide behaviour.read
(org.hl7.fhir.instance.model.api.IIdType theId) Deprecated.Useread(IIdType, RequestDetails)
insteadread
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) read
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, boolean theDeletedOk) readByPid
(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePid) readByPid
(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePid, boolean theDeletedOk) readEntity
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected IBasePersistedResource
readEntityLatestVersion
(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePersistentId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) protected ResourceTable
readEntityLatestVersion
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) reindex
(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePid, ReindexParameters theReindexParameters, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) void
reindex
(T theResource, IBasePersistedResource theEntity) void
removeTag
(org.hl7.fhir.instance.model.api.IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm) void
removeTag
(org.hl7.fhir.instance.model.api.IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected void
requestReindexForRelatedResources
(Boolean theCurrentlyReindexing, List<String> theBase, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.rest.api.server.IBundleProvider
search
(SearchParameterMap theParams) Deprecated.Usesearch(SearchParameterMap, RequestDetails)
insteadca.uhn.fhir.rest.api.server.IBundleProvider
search
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.rest.api.server.IBundleProvider
search
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) searchForIds
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) <PID extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<?>>
Stream<PID> searchForIdStream
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) List
<org.hl7.fhir.instance.model.api.IIdType> searchForResourceIds
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) searchForResources
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
setIdHelperSvcForUnitTest
(IIdHelperService theIdHelperService) protected void
setOffsetAndCount
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
setRequestPartitionHelperService
(IRequestPartitionHelperSvc theRequestPartitionHelperService) void
setResourceType
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theTableType) void
setTransactionService
(HapiTransactionService theTransactionService) protected final boolean
shouldSkipReindex
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) void
start()
protected <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTtoMetaDt
(Class<MT> theType, Collection<TagDefinition> tagDefinitions) Deprecated.Useupdate(T, RequestDetails)
insteadDeprecated.Useupdate(T, String, RequestDetails)
insteadupdate
(T theResource, String theMatchUrl, boolean thePerformIndexing, boolean theForceUpdateVersion, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) update
(T theResource, String theMatchUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) update
(T theResource, String theMatchUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) protected ResourceTable
updateEntityForDelete
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ResourceTable theEntity) ca.uhn.fhir.rest.api.MethodOutcome
validate
(T theResource, org.hl7.fhir.instance.model.api.IIdType theId, String theRawResource, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.api.ValidationModeEnum theMode, String theProfile, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.context.RuntimeResourceDefinition
Get the resource definition from the criteria which specifies the resource typeMethods inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
addPidToResource, decodeResource, getApplicationContext, getContext, getInterceptorBroadcaster, getStorageSettings, isLogicalReference, parseContentTextIntoWords, populateFullTextFields, populateResourceIntoEntity, postDelete, postPersist, postUpdate, setApplicationContext, setContext, setDaoSearchParamSynchronizer, setDisableIncrementOnUpdateForUnitTest, setEntityManager, setExternallyStoredResourceServiceRegistryForUnitTest, setJpaStorageResourceParserForUnitTest, setPartitionSettingsForUnitTest, setResourceHistoryCalculator, setResourceHistoryTableDao, setSearchParamPresenceSvc, setSearchParamWithInlineReferencesExtractor, setStorageSettingsForUnitTest, setValidationDisabledForUnitTest, shouldDroppedTagBeRemovedOnUpdate, updateEntity, updateHistoryEntity, updateInternal, validateMetaCount, validateResourceForStorage
Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageResourceDao
deleteExpunge, patch, patchInTransaction, validateResourceType
Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createInfoOperationOutcome, createMethodOutcomeForResourceId, createOperationOutcome, createResourceGoneException, doCallHooks, extractReferencesToAutoVersion, markRequestAsProcessingSubRequest, populateOperationOutcomeForUpdate, preProcessResourceForStorage, preProcessResourceForStorage, setMyMetaTagSorter, 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
Methods inherited from interface ca.uhn.fhir.jpa.api.dao.IFhirResourceDao
deletePidList, getCurrentVersionId, getReindexJobStatus, patch, patchInTransaction, searchForIds, translateRawParameters
-
Field Details
-
BASE_RESOURCE_NAME
- See Also:
-
myInterceptorBroadcaster
-
myPlatformTransactionManager
@Autowired protected org.springframework.transaction.PlatformTransactionManager myPlatformTransactionManager -
mySearchDao
-
myTransactionService
-
-
Constructor Details
-
BaseHapiFhirResourceDao
public BaseHapiFhirResourceDao()
-
-
Method Details
-
invokeStoragePreShowResources
@Nullable public static <T extends org.hl7.fhir.instance.model.api.IBaseResource> T invokeStoragePreShowResources(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, T retVal) -
invokeStoragePreAccessResources
public static void invokeStoragePreAccessResources(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theId, org.hl7.fhir.instance.model.api.IBaseResource theResource) -
getTransactionService
- Specified by:
getTransactionService
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setTransactionService
-
getMatchResourceUrlService
- Specified by:
getMatchResourceUrlService
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getStorageResourceParser
- Specified by:
getStorageResourceParser
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getDeleteExpungeJobSubmitter
protected ca.uhn.fhir.rest.api.server.storage.IDeleteExpungeJobSubmitter getDeleteExpungeJobSubmitter()- Specified by:
getDeleteExpungeJobSubmitter
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
Deprecated.Usecreate(T, RequestDetails)
instead- Specified by:
create
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
public DaoMethodOutcome create(T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
create
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
Deprecated.Usecreate(T, String, RequestDetails)
instead- Specified by:
create
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
public DaoMethodOutcome create(T theResource, String theIfNoneExist, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
create
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
public DaoMethodOutcome create(T theResource, String theIfNoneExist, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
create
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setRequestPartitionHelperService
public void setRequestPartitionHelperService(IRequestPartitionHelperSvc theRequestPartitionHelperService) -
doCreateForPost
protected DaoMethodOutcome doCreateForPost(T theResource, String theIfNoneExist, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) Called for FHIR create (POST) operations -
getMessageSanitized
-
delete
Deprecated.Usedelete(IIdType, RequestDetails)
instead- Specified by:
delete
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
delete
public DaoMethodOutcome delete(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
delete
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
delete
public DaoMethodOutcome delete(org.hl7.fhir.instance.model.api.IIdType theId, DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
delete
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deleteByUrl
public DeleteMethodOutcome deleteByUrl(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
deleteByUrl
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deleteByUrl
public DeleteMethodOutcome deleteByUrl(String theUrl, DeleteConflictList deleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) This method gets called bydeleteByUrl(String, RequestDetails)
as well as by transaction processors- Specified by:
deleteByUrl
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
expunge
public <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> void expunge(Collection<P> theResourceIds, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
expunge
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deletePidList
@Nonnull public <P extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId> DeleteMethodOutcome deletePidList(String theUrl, Collection<P> theResourceIds, DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
deletePidList
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
updateEntityForDelete
protected ResourceTable updateEntityForDelete(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ResourceTable theEntity) -
expunge
public ExpungeOutcome expunge(org.hl7.fhir.instance.model.api.IIdType theId, ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
expunge
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
expunge
public ExpungeOutcome expunge(ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
expunge
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
forceExpungeInExistingTransaction
public ExpungeOutcome forceExpungeInExistingTransaction(org.hl7.fhir.instance.model.api.IIdType theId, ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
forceExpungeInExistingTransaction
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceName
- Specified by:
getResourceName
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceType
- Specified by:
getResourceType
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
- Specified by:
getResourceType
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setResourceType
public void setResourceType(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theTableType) -
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 interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
history
public ca.uhn.fhir.rest.api.server.IBundleProvider history(org.hl7.fhir.instance.model.api.IIdType theId, Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) Deprecated.- Specified by:
history
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
history
public ca.uhn.fhir.rest.api.server.IBundleProvider history(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.param.HistorySearchDateRangeParam theHistorySearchDateRangeParam, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
history
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
isPagingProviderDatabaseBacked
protected boolean isPagingProviderDatabaseBacked(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
requestReindexForRelatedResources
protected void requestReindexForRelatedResources(Boolean theCurrentlyReindexing, List<String> theBase, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
shouldSkipReindex
protected final boolean shouldSkipReindex(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
metaAddOperation
@Transactional public <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> MT metaAddOperation(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaAdd, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
metaAddOperation
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
doMetaAddOperation
protected <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> void doMetaAddOperation(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaAdd, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) -
metaDeleteOperation
@Transactional public <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> MT metaDeleteOperation(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaDel, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
metaDeleteOperation
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
doMetaDeleteOperation
@Transactional public <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> void doMetaDeleteOperation(org.hl7.fhir.instance.model.api.IIdType theResourceId, MT theMetaDel, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, RequestPartitionId theRequestPartitionId) -
metaGetOperation
public <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> MT metaGetOperation(Class<MT> theType, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
metaGetOperation
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
metaGetOperation
@Transactional public <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> MT metaGetOperation(Class<MT> theType, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
metaGetOperation
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
start
- Overrides:
start
in classBaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
preDelete
protected void preDelete(T theResourceToDelete, ResourceTable theEntityToDelete, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) Subclasses may override to provide behaviour. Invoked within a delete transaction with the resource that is about to be deleted. -
readByPid
- Specified by:
readByPid
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readByPid
@Transactional public T readByPid(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePid, boolean theDeletedOk) - Specified by:
readByPid
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
read
Deprecated.Useread(IIdType, RequestDetails)
instead- Specified by:
read
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
read
public T read(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
read
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
read
public T read(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, boolean theDeletedOk) - Specified by:
read
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readEntity
public BaseHasResource readEntity(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
readEntity
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
- Overrides:
readEntity
in classBaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
reindex
public ReindexOutcome reindex(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePid, ReindexParameters theReindexParameters, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
reindex
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
reindex
Deprecated.- Specified by:
reindex
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readEntityLatestVersion
protected IBasePersistedResource readEntityLatestVersion(ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId thePersistentId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
readEntityLatestVersion
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readEntityLatestVersion
@Nonnull protected ResourceTable readEntityLatestVersion(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
readEntityLatestVersion
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
removeTag
@Transactional public void removeTag(org.hl7.fhir.instance.model.api.IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm) - Specified by:
removeTag
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
removeTag
@Transactional public void removeTag(org.hl7.fhir.instance.model.api.IIdType theId, TagTypeEnum theTagType, String theScheme, String theTerm, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
removeTag
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
search
@Transactional(propagation=SUPPORTS) public ca.uhn.fhir.rest.api.server.IBundleProvider search(SearchParameterMap theParams) Deprecated.Usesearch(SearchParameterMap, RequestDetails)
instead- Specified by:
search
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
search
@Transactional(propagation=SUPPORTS) public ca.uhn.fhir.rest.api.server.IBundleProvider search(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
search
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
search
@Transactional(propagation=SUPPORTS) public ca.uhn.fhir.rest.api.server.IBundleProvider search(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) - Specified by:
search
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setOffsetAndCount
protected void setOffsetAndCount(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) -
searchForIds
public List<JpaPid> searchForIds(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nullable org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) - Specified by:
searchForIds
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
searchForIdStream
public <PID extends ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<?>> Stream<PID> searchForIdStream(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nullable org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) - Specified by:
searchForIdStream
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
searchForResources
public List<T> searchForResources(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
searchForResources
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
searchForResourceIds
public List<org.hl7.fhir.instance.model.api.IIdType> searchForResourceIds(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
searchForResourceIds
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
toMetaDt
protected <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType> MT toMetaDt(Class<MT> theType, Collection<TagDefinition> tagDefinitions) -
update
Deprecated.Useupdate(T, RequestDetails)
instead- Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public DaoMethodOutcome update(T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
Deprecated.Useupdate(T, String, RequestDetails)
instead- Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public DaoMethodOutcome update(T theResource, String theMatchUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing, boolean theForceUpdateVersion, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
update
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
postUpdateTransaction
protected void postUpdateTransaction(ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) -
doUpdateForUpdateOrPatch
protected DaoMethodOutcome doUpdateForUpdateOrPatch(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IIdType theResourceId, String theMatchUrl, boolean thePerformIndexing, boolean theForceUpdateVersion, T theResource, IBasePersistedResource theEntity, ca.uhn.fhir.rest.api.RestOperationTypeEnum theOperationType, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Overrides:
doUpdateForUpdateOrPatch
in classBaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
validate
public ca.uhn.fhir.rest.api.MethodOutcome validate(T theResource, org.hl7.fhir.instance.model.api.IIdType theId, String theRawResource, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.api.ValidationModeEnum theMode, String theProfile, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
validate
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
validateCriteriaAndReturnResourceDefinition
public ca.uhn.fhir.context.RuntimeResourceDefinition validateCriteriaAndReturnResourceDefinition(String criteria) Get the resource definition from the criteria which specifies the resource type- Specified by:
validateCriteriaAndReturnResourceDefinition
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setIdHelperSvcForUnitTest
-
create(T, RequestDetails)
instead