|
OpenNMS API 1.2.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.C3P0DbConnectionFactory
| Field Summary | |
private com.mchange.v2.c3p0.ComboPooledDataSource |
m_pool
|
| Constructor Summary | |
C3P0DbConnectionFactory(DbConfiguration dbConfig)
|
|
| Method Summary | |
java.sql.Connection |
getConnection()
Return a new database connection to the database configured in the opennms-database.xml. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private com.mchange.v2.c3p0.ComboPooledDataSource m_pool
| Constructor Detail |
public C3P0DbConnectionFactory(DbConfiguration dbConfig)
throws java.lang.ClassNotFoundException
| Method Detail |
public java.sql.Connection getConnection()
throws java.sql.SQLException
DbConnectionFactoryclose method.
getConnection in interface DbConnectionFactoryjava.sql.SQLException - Thrown if there is an error opening the connection to the
database.
|
OpenNMS API 1.2.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||