Mercurial > dive4elements > gnv-client
view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java @ 887:b757def3ff55
Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>'
geo-backend/trunk@859 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 09:45:05 +0000 |
parents | 8b442223741c |
children | ebeb56428409 |
line wrap: on
line source
package de.intevation.gnv.geobackend.base.connectionpool; import de.intevation.gnv.geobackend.base.connectionpool.exception.ConnectionException; import java.sql.Connection; import java.util.Properties; /** * Interfacedefinition for an Generic ConnectionPool * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> */ public interface ConnectionPool { /** * Delivers the Connection to the Database * @param connectionID the ID of the Connection * @return the Connection to the Database * @throws ConnectionException */ public Connection getConnection(String connectionID) throws ConnectionException; /** * Returns the Connection to the Pool * @param connection the Connection which should be returned to the Pool * @throws ConnectionException */ public void closeConnection(Connection connection) throws ConnectionException; /** * Initializes the ConnectionPool * @param properties The Properties which should be used for initializing theConnectionPool */ public void initialize(Properties properties); }