Class SimpleDataSourceReference
java.lang.Object
org.conical.common.bbl.db.querier.SimpleDataSourceReference
- All Implemented Interfaces:
DataSourceReference
Simple implementation of
DataSourceReference which uses a
DataSourceConfig to access a specific database via the
DataSourceFactory. For use by users who simply want to
access the capabilities of the Querier without a custom
implementation to configure their DataSource or look up
via JNDI.- Author:
- rdoherty
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor creates an instance configured by the passedDataSourceConfig. -
Method Summary
-
Constructor Details
-
SimpleDataSourceReference
Constructor creates an instance configured by the passedDataSourceConfig.- Parameters:
config- database configuration to access
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceDataSourceReference- Returns:
- the type of database this DataSourceInfo is configured to help access
-
lookUpDataSource
- Specified by:
lookUpDataSourcein interfaceDataSourceReference- Returns:
- a reference to the data source configured
-