Class QuerierFactory

java.lang.Object
org.conical.common.bbl.db.querier.QuerierFactory

public class QuerierFactory extends Object
Factory class that enables construction of a Querier tailored to a specific database type and ready to access a specific data source. Typical usage might be: String bundleName = "databaseProps"; DataSourceConfig config = new DataSourceConfig(bundleName); DataSourceReference dsRef = new SimpleDataSourceReference(config); Querier querier = QuerierFactory.getQuerier(dsRef); ... // querier is ready to use
Author:
rdoherty
  • Constructor Details

    • QuerierFactory

      public QuerierFactory()
  • Method Details

    • getQuerier

      public static Querier getQuerier(DataSourceReference dsRef)
      Generates and returns a Querier specific to the database type and ready to access the DataSource contained in the reference class passed.
      Parameters:
      dsRef - reference to type of and path to database
      Returns:
      tailored Querier