Class DatabaseDSConnFactory
java.lang.Object
com.espertech.esper.common.internal.epl.historical.database.connection.DatabaseDSConnFactory
- All Implemented Interfaces:
DatabaseConnectionFactory
Database connection factory using
InitialContext
and DataSource
to obtain connections.-
Constructor Summary
ConstructorDescriptionDatabaseDSConnFactory
(ConfigurationCommonDBRef.DataSourceConnection dsConfig, ConfigurationCommonDBRef.ConnectionSettings connectionSettings) Ctor. -
Method Summary
-
Constructor Details
-
DatabaseDSConnFactory
public DatabaseDSConnFactory(ConfigurationCommonDBRef.DataSourceConnection dsConfig, ConfigurationCommonDBRef.ConnectionSettings connectionSettings) Ctor.- Parameters:
dsConfig
- is the datasource object name and initial context properties.connectionSettings
- are the connection-level settings
-
-
Method Details
-
getConnection
Description copied from interface:DatabaseConnectionFactory
Creates a new database connection.- Specified by:
getConnection
in interfaceDatabaseConnectionFactory
- Returns:
- new connection
- Throws:
DatabaseConfigException
- throws to indicate a problem getting a new connection
-