Class FhirResourceDaoSearchParameterDstu2

  • All Implemented Interfaces:
    IDao, IFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>, IFhirResourceDaoSearchParameter<ca.uhn.fhir.model.dstu2.resource.SearchParameter>, IJpaDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class FhirResourceDaoSearchParameterDstu2
    extends BaseHapiFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
    implements IFhirResourceDaoSearchParameter<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
    • Constructor Detail

      • FhirResourceDaoSearchParameterDstu2

        public FhirResourceDaoSearchParameterDstu2()
    • Method Detail

      • markAffectedResources

        protected void markAffectedResources​(ca.uhn.fhir.model.dstu2.resource.SearchParameter theResource)
      • postPersist

        protected void postPersist​(ResourceTable theEntity,
                                   ca.uhn.fhir.model.dstu2.resource.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 class BaseHapiFhirDao<ca.uhn.fhir.model.dstu2.resource.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,
                                  ca.uhn.fhir.model.dstu2.resource.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 class BaseHapiFhirDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
        Parameters:
        theEntity - The resource
        theResource - The resource being persisted
      • preDelete

        protected void preDelete​(ca.uhn.fhir.model.dstu2.resource.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 class BaseHapiFhirResourceDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
      • validateResourceForStorage

        protected void validateResourceForStorage​(ca.uhn.fhir.model.dstu2.resource.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 class BaseHapiFhirDao<ca.uhn.fhir.model.dstu2.resource.SearchParameter>
        Parameters:
        theResource - The resource that is about to be persisted
        theEntityToSave - TODO