Package ca.uhn.fhir.jpa.dao
Class BaseStorageResourceDao<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>
- All Implemented Interfaces:
IDao
,IFhirResourceDao<T>
,IJpaDao<T>
public abstract class BaseStorageResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
extends BaseStorageDao
implements IFhirResourceDao<T>, IJpaDao<T>
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
MESSAGE_KEY_DELETE_RESOURCE_ALREADY_DELETED, MESSAGE_KEY_DELETE_RESOURCE_NOT_EXISTING, myDaoRegistry, 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 TypeMethodDescriptionprotected DeleteMethodOutcome
deleteExpunge
(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) 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) protected abstract ca.uhn.fhir.rest.api.server.storage.IDeleteExpungeJobSubmitter
protected abstract MatchResourceUrlService
protected abstract String
Returns the resource type for this DAO, or null if this is a system-level DAOprotected abstract IStorageResourceParser
protected abstract HapiTransactionService
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 theRequestDetails) Opens a new transaction and performs a patch operationpatchInTransaction
(org.hl7.fhir.instance.model.api.IIdType theId, String theConditionalUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String thePatchBody, org.hl7.fhir.instance.model.api.IBaseParameters theFhirPatchBody, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) Execute a patch operation within the existing database transactionprotected abstract 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 abstract IBasePersistedResource
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) static void
validateResourceType
(IBasePersistedResource theEntity, String theResourceName) Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createInfoOperationOutcome, createMethodOutcomeForResourceId, createOperationOutcome, createResourceGoneException, doCallHooks, extractReferencesToAutoVersion, getContext, getInterceptorBroadcaster, getStorageSettings, 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
create, create, create, create, create, delete, delete, delete, deleteByUrl, deleteByUrl, deletePidList, deletePidList, expunge, expunge, expunge, forceExpungeInExistingTransaction, getCurrentVersionId, getReindexJobStatus, history, history, history, metaAddOperation, metaDeleteOperation, metaGetOperation, metaGetOperation, read, read, read, readByPid, readByPid, readEntity, reindex, reindex, removeTag, removeTag, search, search, search, searchForIds, searchForIds, searchForIdStream, searchForResourceIds, searchForResources, translateRawParameters, update, update, update, update, update, update, validate, validateCriteriaAndReturnResourceDefinition
Methods inherited from interface ca.uhn.fhir.jpa.api.dao.IJpaDao
updateEntity, updateInternal
-
Field Details
-
STRICT_ERROR_HANDLER
-
-
Constructor Details
-
BaseStorageResourceDao
public BaseStorageResourceDao()
-
-
Method Details
-
getTransactionService
-
getMatchResourceUrlService
-
getStorageResourceParser
-
getDeleteExpungeJobSubmitter
@Autowired protected abstract ca.uhn.fhir.rest.api.server.storage.IDeleteExpungeJobSubmitter getDeleteExpungeJobSubmitter() -
patch
public 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 theRequestDetails) Description copied from interface:IFhirResourceDao
Opens a new transaction and performs a patch operation- Specified by:
patch
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
patchInTransaction
public DaoMethodOutcome patchInTransaction(org.hl7.fhir.instance.model.api.IIdType theId, String theConditionalUrl, boolean thePerformIndexing, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String thePatchBody, org.hl7.fhir.instance.model.api.IBaseParameters theFhirPatchBody, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) Description copied from interface:IFhirResourceDao
Execute a patch operation within the existing database transaction- Specified by:
patchInTransaction
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceType
- Specified by:
getResourceType
in interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceName
Description copied from class:BaseStorageDao
Returns the resource type for this DAO, or null if this is a system-level DAO- Specified by:
getResourceName
in classBaseStorageDao
-
readEntityLatestVersion
protected abstract 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) -
readEntityLatestVersion
protected abstract IBasePersistedResource 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) -
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) -
validateResourceType
-
deleteExpunge
protected DeleteMethodOutcome deleteExpunge(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest)
-