net.toften.jlips.persist.db
Class DBPooledConnection
java.lang.Object
net.toften.jlips.persist.db.DBAbstractConnection
net.toften.jlips.persist.db.DBPooledConnection
- All Implemented Interfaces:
- DataSource, DBConnectionHandler
public class DBPooledConnection
- extends DBAbstractConnection
- implements DBConnectionHandler
This connection handler implements a pool of connections that can
be shared by all parts of jLips
- Version:
- $Revision: 1.5 $
- Author:
- thomas
Method Summary |
Connection |
getConnection()
Will return a connection from the pool of connections |
void |
releaseConnection(Connection theConnection)
When jLips is done with a connection it will call this method to
allow the connection handler to properly dispose of the connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBPooledConnection
public DBPooledConnection()
getConnection
public Connection getConnection()
throws SQLException
- Will return a connection from the pool of connections
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.getConnection()
releaseConnection
public void releaseConnection(Connection theConnection)
- Description copied from interface:
DBConnectionHandler
- When jLips is done with a connection it will call this method to
allow the connection handler to properly dispose of the connection
- Specified by:
releaseConnection
in interface DBConnectionHandler
- Overrides:
releaseConnection
in class DBAbstractConnection
- Parameters:
theConnection
- The connection to be disposed- See Also:
DBConnectionHandler.releaseConnection(Connection)