|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.log4j.jdbcplus.examples.DbcpPoolConnectionHandler
Implement a sample JDBCConnectionHandler using a Jakarta commons-dbcp connection pool
| Constructor Summary | |
DbcpPoolConnectionHandler()
|
|
| Method Summary | |
void |
freeConnection(Connection con)
The connection is free again, and can be used elsewhere |
Connection |
getConnection()
Get a connection |
Connection |
getConnection(String _url,
String _username,
String _password)
Get a defined connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DbcpPoolConnectionHandler()
| Method Detail |
public Connection getConnection()
JDBCConnectionHandler
getConnection in interface JDBCConnectionHandler
public Connection getConnection(String _url,
String _username,
String _password)
JDBCConnectionHandler
getConnection in interface JDBCConnectionHandler_url - Description of Parameter_username - Description of Parameter_password - Description of Parameter
public void freeConnection(Connection con)
throws Exception
freeConnection in interface JDBCPoolConnectionHandlercon - connection to be freed
Exception - if any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||