Class JpaResourceDaoSearchParameter<T extends org.hl7.fhir.instance.model.api.IBaseResource>

All Implemented Interfaces:
IDao, IFhirResourceDao<T>, IFhirResourceDaoSearchParameter<T>, IJpaDao<T>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class JpaResourceDaoSearchParameter<T extends org.hl7.fhir.instance.model.api.IBaseResource> extends BaseHapiFhirResourceDao<T> implements IFhirResourceDaoSearchParameter<T>
  • Constructor Details

  • Method Details

    • reindexAffectedResources

      protected void reindexAffectedResources(T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
    • postPersist

      protected void postPersist(ResourceTable theEntity, T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
      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 class BaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
      Parameters:
      theEntity - The entity being updated (Do not modify the entity! Undefined behaviour will occur!)
      theResource - The resource being persisted
      theRequestDetails - The request details, needed for partition support
    • postUpdate

      protected void postUpdate(ResourceTable theEntity, T theResource, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
      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 class BaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
      Parameters:
      theEntity - The resource
      theResource - The resource being persisted
      theRequestDetails - The request details, needed for partition support
    • preDelete

      protected void preDelete(T theResourceToDelete, ResourceTable theEntityToDelete, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
      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 class BaseHapiFhirResourceDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
    • validateResourceForStorage

      protected void validateResourceForStorage(T 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 class BaseHapiFhirDao<T extends org.hl7.fhir.instance.model.api.IBaseResource>
      Parameters:
      theResource - The resource that is about to be persisted
      theEntityToSave - TODO
    • validateSearchParam

      public void validateSearchParam(org.hl7.fhir.instance.model.api.IBaseResource theResource)
    • setSearchParameterDaoValidatorForUnitTest

      public void setSearchParameterDaoValidatorForUnitTest(SearchParameterDaoValidator theSearchParameterDaoValidator)