com.pow2.dao
Class JakartaConnectionProvider
java.lang.Object
com.pow2.dao.ConnectionProvider
com.pow2.dao.JakartaConnectionProvider
- public class JakartaConnectionProvider
- extends ConnectionProvider
Connection provider for Apache Jakarta commons-dbcp.
See http://jakarta.apache.org/commons/components.html
for further informations.
- Author:
- Eric Pugh, Luca Fossato
|
Method Summary |
protected Connection |
getConnection()
Get a JDBC Connection |
protected void |
init()
Initialize the Jakarta Commons connection pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JakartaConnectionProvider
public JakartaConnectionProvider()
throws Exception
- Default constructor.
- Throws:
Exception - Description of the Exception
Exception - because of the throws Exception clause
of the init method.
getConnection
protected Connection getConnection()
throws SQLException
- Get a JDBC Connection
- Specified by:
getConnection in class ConnectionProvider
- Returns:
- a JDBC Connection
- Throws:
SQLException - Description of the Exception
init
protected void init()
throws Exception
- Initialize the Jakarta Commons connection pool.
- Specified by:
init in class ConnectionProvider
- Throws:
Exception - if any error occurs
Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.