|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.db.DatabaseDSFactoryConnFactory
public class DatabaseDSFactoryConnFactory
Database connection factory using InitialContext
and DataSource
to obtain connections.
Constructor Summary | |
---|---|
DatabaseDSFactoryConnFactory(ConfigurationDBRef.DataSourceFactory dsConfig,
ConfigurationDBRef.ConnectionSettings connectionSettings)
Ctor. |
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
Creates a new database connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseDSFactoryConnFactory(ConfigurationDBRef.DataSourceFactory dsConfig, ConfigurationDBRef.ConnectionSettings connectionSettings) throws DatabaseConfigException
dsConfig
- is the datasource object name and initial context properties.connectionSettings
- are the connection-level settings
DatabaseConfigException
- when the factory cannot be configuredMethod Detail |
---|
public java.sql.Connection getConnection() throws DatabaseConfigException
DatabaseConnectionFactory
getConnection
in interface DatabaseConnectionFactory
DatabaseConfigException
- throws to indicate a problem getting a new connection
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |