Class ParameterVisitorBatchDAO

  • All Implemented Interfaces:
    ExtractedParameterValueVisitor, AutoCloseable

    public class ParameterVisitorBatchDAO
    extends Object
    implements ExtractedParameterValueVisitor, AutoCloseable
    Batch insert into the parameter values tables. Avoids having to create one stored procedure per resource type, because the row type array approach apparently won't work with dynamic SQL (EXECUTE ... USING ...). Unfortunately this means we have more database round-trips, we don't have a choice.
    • Field Detail

      • compositeIdCounter

        int compositeIdCounter
      • currentCompositeId

        Integer currentCompositeId
      • currentCompositeParameterName

        String currentCompositeParameterName
    • Method Detail

      • getParameterNameId

        protected int getParameterNameId​(String parameterName)
                                  throws com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Look up the normalized id for the parameter, adding it to the parameter_names table if it doesn't yet exist
        Parameters:
        parameterName -
        Returns:
        Throws:
        com.ibm.fhir.persistence.exception.FHIRPersistenceException
      • getCodeSystemId

        protected int getCodeSystemId​(String codeSystem)
                               throws com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Looks up the code system. If it doesn't exist, adds it to the database
        Parameters:
        codeSystem -
        Returns:
        Throws:
        com.ibm.fhir.persistence.exception.FHIRPersistenceException