Class FHIRDbConnectionStrategyBase

    • Method Detail

      • configure

        protected void configure​(Connection connection,
                                 String tenantId,
                                 String dsId)
                          throws com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Check with the transaction sync registry to see if this is the first time we've worked with this connection in the current transaction.
        Parameters:
        connection - the new connection
        tenantId - the tenant to which the connection belongs
        dsId - the datasource in the tenant to which the connection belongs
        Throws:
        com.ibm.fhir.persistence.exception.FHIRPersistenceException
      • getConnection

        protected Connection getConnection​(DataSource datasource,
                                           String tenantId,
                                           String dsId)
                                    throws SQLException,
                                           com.ibm.fhir.persistence.exception.FHIRPersistenceException
        Get a connection configured for the given tenant and datasourceId
        Parameters:
        datasource -
        tenantId -
        dsId -
        Returns:
        Throws:
        SQLException
        com.ibm.fhir.persistence.exception.FHIRPersistenceException
      • applySearchOptimizerOptions

        public void applySearchOptimizerOptions​(Connection c,
                                                boolean isCompartment)
        Description copied from interface: FHIRDbConnectionStrategy
        Apply any optimizer options configured to improve search query performance See issue-1911 for details.
        Specified by:
        applySearchOptimizerOptions in interface FHIRDbConnectionStrategy
        Parameters:
        c - the connection to be configured
        isCompartment - true if the query is a compartment-based search