Mercurial > dive4elements > gnv-client
diff geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java @ 132:5a583cff97ea
Implementation of the Datainfrastructure for fetching Data from different DataStores.
geo-backend/trunk@12 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 04 Sep 2009 08:11:30 +0000 |
parents | e4eacd613356 |
children | 1c3efbd2fc5a |
line wrap: on
line diff
--- a/geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java Wed Sep 02 15:28:51 2009 +0000 +++ b/geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java Fri Sep 04 08:11:30 2009 +0000 @@ -10,26 +10,26 @@ * @author Tim Englich <tim.englich@intevation.de> */ 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); + + /** + * 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); }