Class QuerierFactory
java.lang.Object
org.conical.common.bbl.db.querier.QuerierFactory
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
QuerierFactory
public QuerierFactory()
-
-
Method Details
-
getQuerier
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
-