Package ca.uhn.fhir.jpa.dao.r5
Class FhirResourceDaoSearchParameterR5
java.lang.Object
ca.uhn.fhir.jpa.dao.BaseStorageDao
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao<org.hl7.fhir.r5.model.SearchParameter>
ca.uhn.fhir.jpa.dao.r5.FhirResourceDaoSearchParameterR5
- All Implemented Interfaces:
ca.uhn.fhir.jpa.api.dao.IDao
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDao<org.hl7.fhir.r5.model.SearchParameter>
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoSearchParameter<org.hl7.fhir.r5.model.SearchParameter>
,ca.uhn.fhir.jpa.api.dao.IJpaDao<org.hl7.fhir.r5.model.SearchParameter>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class FhirResourceDaoSearchParameterR5
extends BaseHapiFhirResourceDao<org.hl7.fhir.r5.model.SearchParameter>
implements ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoSearchParameter<org.hl7.fhir.r5.model.SearchParameter>
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao
myPlatformTransactionManager, mySearchDao, myTransactionService
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 TypeMethodDescriptionprotected void
markAffectedResources
(org.hl7.fhir.r5.model.SearchParameter theResource) protected void
postPersist
(ResourceTable theEntity, org.hl7.fhir.r5.model.SearchParameter theResource) Subclasses may override to provide behaviour.protected void
postUpdate
(ResourceTable theEntity, org.hl7.fhir.r5.model.SearchParameter theResource) Subclasses may override to provide behaviour.protected void
preDelete
(org.hl7.fhir.r5.model.SearchParameter theResourceToDelete, ResourceTable theEntityToDelete) Subclasses may override to provide behaviour.protected void
validateResourceForStorage
(org.hl7.fhir.r5.model.SearchParameter theResource, ResourceTable theEntityToSave) This method is invoked immediately before storing a new resource, or an update to an existing resource to allow the DAO to ensure that it is valid for persistence.Methods inherited from class ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao
create, create, create, create, create, delete, delete, delete, deleteByUrl, deleteByUrl, deletePidList, detectSearchDaoDisabled, doCreateForPost, doRead, expunge, expunge, forceExpungeInExistingTransaction, getCurrentVersionId, getMessageSanitized, getResourceName, getResourceType, history, history, isPagingProviderDatabaseBacked, markResourcesMatchingExpressionAsNeedingReindexing, metaAddOperation, metaDeleteOperation, metaGetOperation, metaGetOperation, patch, postConstruct, read, read, read, readByPid, readByPid, readEntity, readEntity, readEntityLatestVersion, reindex, removeTag, removeTag, search, search, search, searchForIds, setIdHelperSvcForUnitTest, setRequestPartitionHelperService, setResourceType, setTransactionService, start, toMetaDt, update, update, update, update, update, update, validate, validateCriteriaAndReturnResourceDefinition
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, setApplicationContext, setContext, setDaoConfigForUnitTest, setDaoSearchParamSynchronizer, setDisableIncrementOnUpdateForUnitTest, setEntityManager, setPartitionSettingsForUnitTest, setResourceHistoryTableDao, setSearchParamPresenceSvc, setSearchParamWithInlineReferencesExtractor, setValidationDisabledForUnitTest, shouldDroppedTagBeRemovedOnUpdate, toResource, toResource, toResourceName, toTagDefinitionMemoryCacheKey, updateEntity, updateEntityForDelete, updateInternal, updateResourceMetadata, validateMetaCount, 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
create, create, create, create, create, delete, delete, delete, deleteByUrl, deleteByUrl, deletePidList, expunge, expunge, forceExpungeInExistingTransaction, getCurrentVersionId, getResourceType, history, history, metaAddOperation, metaDeleteOperation, metaGetOperation, metaGetOperation, patch, read, read, read, readByPid, readByPid, readEntity, readEntity, reindex, removeTag, removeTag, search, search, search, searchForIds, searchForIds, translateRawParameters, update, update, update, update, update, update, validate, validateCriteriaAndReturnResourceDefinition
-
Constructor Details
-
FhirResourceDaoSearchParameterR5
public FhirResourceDaoSearchParameterR5()
-
-
Method Details
-
markAffectedResources
-
postPersist
protected void postPersist(ResourceTable theEntity, org.hl7.fhir.r5.model.SearchParameter theResource) Description copied from class:BaseHapiFhirDao
Subclasses may override to provide behaviour. Called when a resource has been inserted into the database for the first time.- Overrides:
postPersist
in classBaseHapiFhirDao<org.hl7.fhir.r5.model.SearchParameter>
- Parameters:
theEntity
- The entity being updated (Do not modify the entity! Undefined behaviour will occur!)theResource
- The resource being persisted
-
postUpdate
protected void postUpdate(ResourceTable theEntity, org.hl7.fhir.r5.model.SearchParameter theResource) Description copied from class:BaseHapiFhirDao
Subclasses may override to provide behaviour. Called when a pre-existing resource has been updated in the database- Overrides:
postUpdate
in classBaseHapiFhirDao<org.hl7.fhir.r5.model.SearchParameter>
- Parameters:
theEntity
- The resourcetheResource
- The resource being persisted
-
preDelete
protected void preDelete(org.hl7.fhir.r5.model.SearchParameter theResourceToDelete, ResourceTable theEntityToDelete) Description copied from class:BaseHapiFhirResourceDao
Subclasses may override to provide behaviour. Invoked within a delete transaction with the resource that is about to be deleted.- Overrides:
preDelete
in classBaseHapiFhirResourceDao<org.hl7.fhir.r5.model.SearchParameter>
-
validateResourceForStorage
protected void validateResourceForStorage(org.hl7.fhir.r5.model.SearchParameter theResource, ResourceTable theEntityToSave) Description copied from class:BaseHapiFhirDao
This method is invoked immediately before storing a new resource, or an update to an existing resource to allow the DAO to ensure that it is valid for persistence. By default, checks for the "subsetted" tag and rejects resources which have it. Subclasses should call the superclass implementation to preserve this check.- Overrides:
validateResourceForStorage
in classBaseHapiFhirDao<org.hl7.fhir.r5.model.SearchParameter>
- Parameters:
theResource
- The resource that is about to be persistedtheEntityToSave
- TODO
-