Interface ParameterNameDAO

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Integer> readAllSearchParameterNames()
      Reads all rows in the Parameter_Names table and returns the data as a Map
      int readOrAddParameterNameId​(java.lang.String parameterName)
      Reads the id associated with the name of the passed Parameter from the Parameter_Names table.
      java.lang.Integer readParameterNameId​(java.lang.String parameterName)
      Read the parameter_name_id for the given parameterName
    • Method Detail

      • readAllSearchParameterNames

        java.util.Map<java.lang.String,​java.lang.Integer> readAllSearchParameterNames()
                                                                                     throws FHIRPersistenceDataAccessException
        Reads all rows in the Parameter_Names table and returns the data as a Map
        Returns:
        A map containing key=parameter-name, value=parameter-name-id
        Throws:
        FHIRPersistenceDataAccessException
      • readOrAddParameterNameId

        int readOrAddParameterNameId​(java.lang.String parameterName)
                              throws FHIRPersistenceDataAccessException
        Reads the id associated with the name of the passed Parameter from the Parameter_Names table. If the id for the passed name is not present in the database, an id is generated, persisted, and returned.
        Parameters:
        parameterName - A valid FHIR search parameter name.
        Returns:
        the id associated with the name of the passed Parameter.
        Throws:
        FHIRPersistenceDataAccessException
      • readParameterNameId

        java.lang.Integer readParameterNameId​(java.lang.String parameterName)
                                       throws FHIRPersistenceDataAccessException
        Read the parameter_name_id for the given parameterName
        Parameters:
        parameterName - A valid FHIR search parameter name.
        Returns:
        the parameter_name_id for for parameter, or null if it doesn't exist
        Throws:
        FHIRPersistenceDataAccessException