tim@130: package de.intevation.gnv.geobackend.base.connectionpool; tim@130: tim@130: import java.sql.Connection; tim@130: import java.util.Properties; tim@130: tim@130: import de.intevation.gnv.geobackend.base.connectionpool.exception.ConnectionException; tim@130: tim@130: /** tim@130: * Interfacedefinition for an Generic ConnectionPool tim@130: * @author Tim Englich tim@130: */ tim@130: public interface ConnectionPool { sascha@885: tim@132: /** tim@132: * Delivers the Connection to the Database sascha@885: * @param connectionID the ID of the Connection tim@132: * @return the Connection to the Database tim@132: * @throws ConnectionException tim@132: */ tim@132: public Connection getConnection(String connectionID) throws ConnectionException; tim@132: tim@132: /** tim@132: * Returns the Connection to the Pool tim@132: * @param connection the Connection which should be returned to the Pool tim@132: * @throws ConnectionException tim@132: */ tim@132: public void closeConnection(Connection connection) throws ConnectionException; tim@132: tim@132: /** tim@132: * Initializes the ConnectionPool tim@132: * @param properties The Properties which should be used for initializing theConnectionPool tim@132: */ tim@132: public void initialize(Properties properties); tim@130: tim@130: }