Package ca.uhn.fhir.jpa.dao
Class FhirResourceDaoSubscriptionDstu2
java.lang.Object
ca.uhn.fhir.jpa.dao.BaseStorageDao
ca.uhn.fhir.jpa.dao.BaseHapiFhirDao<T>
ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
ca.uhn.fhir.jpa.dao.FhirResourceDaoSubscriptionDstu2
- All Implemented Interfaces:
ca.uhn.fhir.jpa.api.dao.IDao
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
,ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoSubscription<ca.uhn.fhir.model.dstu2.resource.Subscription>
,ca.uhn.fhir.jpa.api.dao.IJpaDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class FhirResourceDaoSubscriptionDstu2
extends BaseHapiFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
implements ca.uhn.fhir.jpa.api.dao.IFhirResourceDaoSubscription<ca.uhn.fhir.model.dstu2.resource.Subscription>
-
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
-
Method Summary
Modifier and TypeMethodDescriptiongetSubscriptionTablePidForSubscriptionResource
(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) protected void
postPersist
(ResourceTable theEntity, ca.uhn.fhir.model.dstu2.resource.Subscription theSubscription) Subclasses may override to provide behaviour.updateEntity
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, IBasePersistedResource theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, boolean theForceUpdate, boolean theCreateNewHistoryEntry) 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, preDelete, 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, postUpdate, setApplicationContext, setContext, setDaoConfigForUnitTest, setDaoSearchParamSynchronizer, setDisableIncrementOnUpdateForUnitTest, setEntityManager, setPartitionSettingsForUnitTest, setResourceHistoryTableDao, setSearchParamPresenceSvc, setSearchParamWithInlineReferencesExtractor, setValidationDisabledForUnitTest, shouldDroppedTagBeRemovedOnUpdate, toResource, toResource, toResourceName, toTagDefinitionMemoryCacheKey, 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
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
-
FhirResourceDaoSubscriptionDstu2
public FhirResourceDaoSubscriptionDstu2()
-
-
Method Details
-
getSubscriptionTablePidForSubscriptionResource
public Long getSubscriptionTablePidForSubscriptionResource(org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.server.RequestDetails theRequest, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails) - Specified by:
getSubscriptionTablePidForSubscriptionResource
in interfaceca.uhn.fhir.jpa.api.dao.IFhirResourceDaoSubscription<ca.uhn.fhir.model.dstu2.resource.Subscription>
-
postPersist
protected void postPersist(ResourceTable theEntity, ca.uhn.fhir.model.dstu2.resource.Subscription theSubscription) 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<ca.uhn.fhir.model.dstu2.resource.Subscription>
- Parameters:
theEntity
- The entity being updated (Do not modify the entity! Undefined behaviour will occur!)theSubscription
- The resource being persisted
-
updateEntity
public ResourceTable updateEntity(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, org.hl7.fhir.instance.model.api.IBaseResource theResource, IBasePersistedResource theEntity, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion, ca.uhn.fhir.rest.api.server.storage.TransactionDetails theTransactionDetails, boolean theForceUpdate, boolean theCreateNewHistoryEntry) - Specified by:
updateEntity
in interfaceca.uhn.fhir.jpa.api.dao.IJpaDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
- Overrides:
updateEntity
in classBaseHapiFhirDao<ca.uhn.fhir.model.dstu2.resource.Subscription>
-