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.BaseHapiFhirDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao<T>
- All Implemented Interfaces:
ca.uhn.fhir.jpa.api.dao.IDao
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T>
,ca.uhn.fhir.jpa.api.dao.IJpaDao<T>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
BaseHapiFhirResourceDaoObservation
,FhirResourceDaoBundleDstu2
,FhirResourceDaoBundleDstu3
,FhirResourceDaoBundleR4
,FhirResourceDaoBundleR5
,FhirResourceDaoCodeSystemDstu3
,FhirResourceDaoCodeSystemR4
,FhirResourceDaoCodeSystemR5
,FhirResourceDaoCompositionDstu2
,FhirResourceDaoCompositionDstu3
,FhirResourceDaoCompositionR4
,FhirResourceDaoCompositionR5
,FhirResourceDaoConceptMapDstu3
,FhirResourceDaoConceptMapR4
,FhirResourceDaoConceptMapR5
,FhirResourceDaoEncounterDstu2
,FhirResourceDaoEncounterDstu3
,FhirResourceDaoEncounterR4
,FhirResourceDaoEncounterR5
,FhirResourceDaoMessageHeaderDstu2
,FhirResourceDaoMessageHeaderDstu3
,FhirResourceDaoMessageHeaderR4
,FhirResourceDaoMessageHeaderR5
,FhirResourceDaoPatientDstu2
,FhirResourceDaoPatientDstu3
,FhirResourceDaoPatientR4
,FhirResourceDaoPatientR5
,FhirResourceDaoQuestionnaireResponseDstu2
,FhirResourceDaoQuestionnaireResponseDstu3
,FhirResourceDaoQuestionnaireResponseR4
,FhirResourceDaoQuestionnaireResponseR5
,FhirResourceDaoSearchParameterDstu2
,FhirResourceDaoSearchParameterDstu3
,FhirResourceDaoSearchParameterR4
,FhirResourceDaoSearchParameterR5
,FhirResourceDaoStructureDefinitionDstu2
,FhirResourceDaoStructureDefinitionDstu3
,FhirResourceDaoStructureDefinitionR4
,FhirResourceDaoStructureDefinitionR5
,FhirResourceDaoSubscriptionDstu2
,FhirResourceDaoSubscriptionDstu3
,FhirResourceDaoSubscriptionR4
,FhirResourceDaoSubscriptionR5
,FhirResourceDaoValueSetDstu2
,FhirResourceDaoValueSetDstu3
,FhirResourceDaoValueSetR4
,FhirResourceDaoValueSetR5
,JpaResourceDao
public abstract class BaseHapiFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
extends BaseHapiFhirDao<T>
implements ca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.transaction.PlatformTransactionManager
protected IFulltextSearchSvc
protected ca.uhn.fhir.jpa.dao.tx.HapiTransactionService
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirDao
INDEX_STATUS_INDEXED, INDEX_STATUS_INDEXING_FAILED, 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.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
create
(T theResource, String theIfNoneExist, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
create
(T theResource, String theIfNoneExist, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
delete
(org.hl7.fhir.instance.model.api.IIdType theId) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
delete
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
delete
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.jpa.api.model.DeleteMethodOutcome
deleteByUrl
(String theUrl, ca.uhn.fhir.jpa.api.model.DeleteConflictList deleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) This method gets called bydeleteByUrl(String, RequestDetails)
as well as by transaction processorsca.uhn.fhir.jpa.api.model.DeleteMethodOutcome
deleteByUrl
(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.jpa.api.model.DeleteMethodOutcome
deletePidList
(String theUrl, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theResourceIds, ca.uhn.fhir.jpa.api.model.DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
protected ca.uhn.fhir.jpa.api.model.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) Called for FHIR create (POST) operationsdoRead
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, boolean theDeletedOk) ca.uhn.fhir.jpa.api.model.ExpungeOutcome
expunge
(ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.jpa.api.model.ExpungeOutcome
expunge
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) ca.uhn.fhir.jpa.api.model.ExpungeOutcome
forceExpungeInExistingTransaction
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) getCurrentVersionId
(org.hl7.fhir.instance.model.api.IIdType theReferenceElement) protected String
getMessageSanitized
(String theKey, String theIdPart) 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, Date theSince, Date theUntil, Integer theOffset, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected boolean
isPagingProviderDatabaseBacked
(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) protected void
markResourcesMatchingExpressionAsNeedingReindexing
(Boolean theCurrentlyReindexing, String theExpression) <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) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
patch
(org.hl7.fhir.instance.model.api.IIdType theId, String theConditionalUrl, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String thePatchBody, org.hl7.fhir.instance.model.api.IBaseParameters theFhirPatchBody, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) void
protected void
preDelete
(T theResourceToDelete, ResourceTable theEntityToDelete) Subclasses may override to provide behaviour.read
(org.hl7.fhir.instance.model.api.IIdType theId) read
(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.ResourcePersistentId thePid) readByPid
(ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId thePid, boolean theDeletedOk) readEntity
(org.hl7.fhir.instance.model.api.IIdType theId, boolean theCheckForForcedId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) readEntity
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) 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) void
reindex
(T theResource, ResourceTable 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) ca.uhn.fhir.rest.api.server.IBundleProvider
search
(SearchParameterMap theParams) ca.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, javax.servlet.http.HttpServletResponse theServletResponse) Set<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId>
searchForIds
(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) void
setIdHelperSvcForUnitTest
(IdHelperService theIdHelperService) void
setRequestPartitionHelperService
(ca.uhn.fhir.jpa.partition.IRequestPartitionHelperSvc theRequestPartitionHelperService) void
setResourceType
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theTableType) void
setTransactionService
(ca.uhn.fhir.jpa.dao.tx.HapiTransactionService theTransactionService) void
start()
protected <MT extends org.hl7.fhir.instance.model.api.IBaseMetaType>
MTtoMetaDt
(Class<MT> theType, Collection<TagDefinition> tagDefinitions) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
update
(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) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
update
(T theResource, String theMatchUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) ca.uhn.fhir.jpa.api.model.DaoMethodOutcome
update
(T theResource, String theMatchUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) 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, encodeResource, getApplicationContext, getConfig, getContext, getContext, getInterceptorBroadcaster, getTagOrNull, history, isLogicalReference, parseContentTextIntoWords, populateFullTextFields, populateResourceIntoEntity, postDelete, postPersist, postUpdate, 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.IFhirResourceDao
searchForIds, translateRawParameters
-
Field Details
-
myPlatformTransactionManager
@Autowired protected org.springframework.transaction.PlatformTransactionManager myPlatformTransactionManager -
mySearchDao
-
myTransactionService
-
-
Constructor Details
-
BaseHapiFhirResourceDao
public BaseHapiFhirResourceDao()
-
-
Method Details
-
create
- Specified by:
create
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome create(T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
create
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
- Specified by:
create
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
create
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome create(T theResource, String theIfNoneExist, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
create
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setTransactionService
public void setTransactionService(ca.uhn.fhir.jpa.dao.tx.HapiTransactionService theTransactionService) -
create
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome create(T theResource, String theIfNoneExist, boolean thePerformIndexing, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
create
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setRequestPartitionHelperService
public void setRequestPartitionHelperService(ca.uhn.fhir.jpa.partition.IRequestPartitionHelperSvc theRequestPartitionHelperService) -
doCreateForPost
protected ca.uhn.fhir.jpa.api.model.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) Called for FHIR create (POST) operations -
getMessageSanitized
-
delete
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome delete(org.hl7.fhir.instance.model.api.IIdType theId) - Specified by:
delete
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
delete
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome delete(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
delete
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
delete
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome delete(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, @Nonnull ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
delete
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deleteByUrl
public ca.uhn.fhir.jpa.api.model.DeleteMethodOutcome deleteByUrl(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
deleteByUrl
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deleteByUrl
public ca.uhn.fhir.jpa.api.model.DeleteMethodOutcome deleteByUrl(String theUrl, ca.uhn.fhir.jpa.api.model.DeleteConflictList deleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) This method gets called bydeleteByUrl(String, RequestDetails)
as well as by transaction processors- Specified by:
deleteByUrl
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
deletePidList
@Nonnull public ca.uhn.fhir.jpa.api.model.DeleteMethodOutcome deletePidList(String theUrl, Collection<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> theResourceIds, ca.uhn.fhir.jpa.api.model.DeleteConflictList theDeleteConflicts, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
deletePidList
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
detectSearchDaoDisabled
-
expunge
@Transactional(propagation=NEVER) public ca.uhn.fhir.jpa.api.model.ExpungeOutcome expunge(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
expunge
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
forceExpungeInExistingTransaction
public ca.uhn.fhir.jpa.api.model.ExpungeOutcome forceExpungeInExistingTransaction(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.jpa.api.model.ExpungeOptions theExpungeOptions, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
forceExpungeInExistingTransaction
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends 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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceName
- Specified by:
getResourceName
in classca.uhn.fhir.jpa.dao.BaseStorageDao
-
getResourceType
- Specified by:
getResourceType
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setResourceType
public void setResourceType(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theTableType) -
history
@Transactional 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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
history
@Transactional 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) - Specified by:
history
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
isPagingProviderDatabaseBacked
protected boolean isPagingProviderDatabaseBacked(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) -
markResourcesMatchingExpressionAsNeedingReindexing
protected void markResourcesMatchingExpressionAsNeedingReindexing(Boolean theCurrentlyReindexing, String theExpression) -
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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
metaGetOperation
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
patch
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome patch(org.hl7.fhir.instance.model.api.IIdType theId, String theConditionalUrl, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String thePatchBody, org.hl7.fhir.instance.model.api.IBaseParameters theFhirPatchBody, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
patch
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
start
- Overrides:
start
in classBaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
postConstruct
-
preDelete
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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readByPid
@Transactional public T readByPid(ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId thePid, boolean theDeletedOk) - Specified by:
readByPid
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
read
- Specified by:
read
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
doRead
-
readEntity
@Transactional public BaseHasResource readEntity(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
readEntity
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
- Overrides:
readEntity
in classBaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getCurrentVersionId
@Transactional public String getCurrentVersionId(org.hl7.fhir.instance.model.api.IIdType theReferenceElement) - Specified by:
getCurrentVersionId
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
readEntity
@Transactional public BaseHasResource readEntity(org.hl7.fhir.instance.model.api.IIdType theId, boolean theCheckForForcedId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) - Specified by:
readEntity
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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) -
reindex
- Specified by:
reindex
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
search
@Transactional(propagation=SUPPORTS) public ca.uhn.fhir.rest.api.server.IBundleProvider search(SearchParameterMap theParams) - Specified by:
search
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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, javax.servlet.http.HttpServletResponse theServletResponse) - Specified by:
search
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
searchForIds
public Set<ca.uhn.fhir.rest.api.server.storage.ResourcePersistentId> searchForIds(SearchParameterMap theParams, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, @Nullable org.hl7.fhir.instance.model.api.IBaseResource theConditionalOperationTargetOrNull) - Specified by:
searchForIds
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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
- Specified by:
update
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome update(T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
- Specified by:
update
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome update(T theResource, String theMatchUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public ca.uhn.fhir.jpa.api.model.DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) - Specified by:
update
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
update
public ca.uhn.fhir.jpa.api.model.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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
validate
@Transactional(propagation=SUPPORTS) 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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<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 interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
setIdHelperSvcForUnitTest
-