Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/base/connectionpool/ConnectionPool.java @ 130:e4eacd613356
Implementierung Datenzugriff auf die ArcSDE über java.sql. Methodiken
ChangeLog wird nachgereicht da SubversionClientincompatiblitäten vorhanden sind.
geo-backend/trunk@7 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Wed, 02 Sep 2009 15:15:52 +0000 |
parents | |
children | 5a583cff97ea |
comparison
equal
deleted
inserted
replaced
129:110e3ac1b7d2 | 130:e4eacd613356 |
---|---|
1 package de.intevation.gnv.geobackend.base.connectionpool; | |
2 | |
3 import java.sql.Connection; | |
4 import java.util.Properties; | |
5 | |
6 import de.intevation.gnv.geobackend.base.connectionpool.exception.ConnectionException; | |
7 | |
8 /** | |
9 * Interfacedefinition for an Generic ConnectionPool | |
10 * @author Tim Englich <tim.englich@intevation.de> | |
11 */ | |
12 public interface ConnectionPool { | |
13 | |
14 /** | |
15 * Delivers the Connection to the Database | |
16 * @param connectionID the ID of the Connection | |
17 * @return the Connection to the Database | |
18 * @throws ConnectionException | |
19 */ | |
20 public Connection getConnection(String connectionID) throws ConnectionException; | |
21 | |
22 /** | |
23 * Returns the Connection to the Pool | |
24 * @param connection the Connection which should be returned to the Pool | |
25 * @throws ConnectionException | |
26 */ | |
27 public void closeConnection(Connection connection) throws ConnectionException; | |
28 | |
29 /** | |
30 * Initializes the ConnectionPool | |
31 * @param properties The Properties which should be used for initializing theConnectionPool | |
32 */ | |
33 public void initialize(Properties properties); | |
34 | |
35 } |