|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.db.DatabaseDMConnFactory
public class DatabaseDMConnFactory
Database connection factory using DriverManager
to obtain connections.
Constructor Summary | |
---|---|
DatabaseDMConnFactory(ConfigurationDBRef.DriverManagerConnection driverConfig,
ConfigurationDBRef.ConnectionSettings connectionSettings)
Ctor. |
Method Summary | |
---|---|
java.sql.Connection |
getConnection()
Creates a new database connection. |
protected static void |
setConnectionOptions(java.sql.Connection connection,
ConfigurationDBRef.ConnectionSettings connectionSettings)
Method to set connection-level configuration settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseDMConnFactory(ConfigurationDBRef.DriverManagerConnection driverConfig, ConfigurationDBRef.ConnectionSettings connectionSettings) throws DatabaseConfigException
driverConfig
- is the driver manager configurationconnectionSettings
- are connection-level settings
DatabaseConfigException
- thrown if the driver class cannot be loadedMethod Detail |
---|
public java.sql.Connection getConnection() throws DatabaseConfigException
DatabaseConnectionFactory
getConnection
in interface DatabaseConnectionFactory
DatabaseConfigException
- throws to indicate a problem getting a new connectionprotected static void setConnectionOptions(java.sql.Connection connection, ConfigurationDBRef.ConnectionSettings connectionSettings) throws DatabaseConfigException
connection
- is the connection to set onconnectionSettings
- are the settings to apply
DatabaseConfigException
- is thrown if an SQLException is thrown
|
© 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 |