Mercurial > dive4elements > gnv-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
131:d8ff739b9f3b | 132:5a583cff97ea |
---|---|
8 /** | 8 /** |
9 * Interfacedefinition for an Generic ConnectionPool | 9 * Interfacedefinition for an Generic ConnectionPool |
10 * @author Tim Englich <tim.englich@intevation.de> | 10 * @author Tim Englich <tim.englich@intevation.de> |
11 */ | 11 */ |
12 public interface ConnectionPool { | 12 public interface ConnectionPool { |
13 | 13 |
14 /** | 14 /** |
15 * Delivers the Connection to the Database | 15 * Delivers the Connection to the Database |
16 * @param connectionID the ID of the Connection | 16 * @param connectionID the ID of the Connection |
17 * @return the Connection to the Database | 17 * @return the Connection to the Database |
18 * @throws ConnectionException | 18 * @throws ConnectionException |
19 */ | 19 */ |
20 public Connection getConnection(String connectionID) throws ConnectionException; | 20 public Connection getConnection(String connectionID) throws ConnectionException; |
21 | 21 |
22 /** | 22 /** |
23 * Returns the Connection to the Pool | 23 * Returns the Connection to the Pool |
24 * @param connection the Connection which should be returned to the Pool | 24 * @param connection the Connection which should be returned to the Pool |
25 * @throws ConnectionException | 25 * @throws ConnectionException |
26 */ | 26 */ |
27 public void closeConnection(Connection connection) throws ConnectionException; | 27 public void closeConnection(Connection connection) throws ConnectionException; |
28 | 28 |
29 /** | 29 /** |
30 * Initializes the ConnectionPool | 30 * Initializes the ConnectionPool |
31 * @param properties The Properties which should be used for initializing theConnectionPool | 31 * @param properties The Properties which should be used for initializing theConnectionPool |
32 */ | 32 */ |
33 public void initialize(Properties properties); | 33 public void initialize(Properties properties); |
34 | 34 |
35 } | 35 } |