Mercurial > dive4elements > gnv-client
view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java @ 1145:dfe1ac687c7f tip
added tags
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:16:15 +0200 |
parents | ebeb56428409 |
children |
line wrap: on
line source
/* * Copyright (c) 2010 by Intevation GmbH * * This program is free software under the LGPL (>=v2.1) * Read the file LGPL.txt coming with the software for details * or visit http://www.gnu.org/licenses/ if it does not exist. */ 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); }