
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
FieldsFields 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_ISSUE_CODE_INFORMATIONAL, 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 TypeMethodDescriptionprotected DeleteMethodOutcomedeleteExpunge(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest) protected DaoMethodOutcomedoUpdateForUpdateOrPatch(UpdateParameters<T> theUpdateParameters) protected abstract ca.uhn.fhir.rest.api.server.storage.IDeleteExpungeJobSubmitterprotected abstract MatchResourceUrlServiceprotected abstract MatchUrlServiceprotected abstract IRequestPartitionHelperSvcprotected abstract StringReturns the resource type for this DAO, or null if this is a system-level DAOprotected abstract IStorageResourceParserprotected abstract HapiTransactionServicepatch(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, RequestPartitionId theRequestPartitionId) Execute a patch operation within the existing database transactionprotected abstract IBasePersistedResourcereadEntityLatestVersion(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 IBasePersistedResourcereadEntityLatestVersion(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 voidvalidateResourceType(IBasePersistedResource<?> theEntity, String theResourceName) Methods inherited from class ca.uhn.fhir.jpa.dao.BaseStorageDao
addIssueToOperationOutcomeForAutoCreatedPlaceholder, clearRequestAsProcessingSubRequest, createErrorOperationOutcome, createInfoOperationOutcome, createInfoOperationOutcome, createMethodOutcomeForResourceId, createResourceGoneException, createWarnOperationOutcome, doCallHooks, extractReferencesToAutoVersion, extractReferencesToAvoidReplacement, getContext, getInterceptorBroadcaster, getStorageSettings, markRequestAsProcessingSubRequest, populateOperationOutcomeForUpdate, preProcessResourceForStorage, preProcessResourceForStorage, setMyMetaTagSorter, setSearchParamRegistry, toMethodOutcome, toMethodOutcomeLazy, translateRawParameters, verifyResourceIdIsValidMethods 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.IDao
getContextMethods 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, fetchAllVersionsOfResources, 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, validateCriteriaAndReturnResourceDefinitionMethods 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() -
getRequestPartitionHelperService
-
getMatchUrlService
-
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:IFhirResourceDaoOpens a new transaction and performs a patch operation- Specified by:
patchin 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, RequestPartitionId theRequestPartitionId) Description copied from interface:IFhirResourceDaoExecute a patch operation within the existing database transaction- Specified by:
patchInTransactionin interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceType
- Specified by:
getResourceTypein interfaceIFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
-
getResourceName
Description copied from class:BaseStorageDaoReturns the resource type for this DAO, or null if this is a system-level DAO- Specified by:
getResourceNamein 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
-
validateResourceType
public static void validateResourceType(IBasePersistedResource<?> theEntity, String theResourceName) -
deleteExpunge
protected DeleteMethodOutcome deleteExpunge(String theUrl, ca.uhn.fhir.rest.api.server.RequestDetails theRequest)
-