deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.commons.jdbc
Class ConnectionPool

java.lang.Object
  extended by org.deegree.commons.jdbc.ConnectionPool

 class ConnectionPool
extends Object

Simple implementation of a JDBC connection pool based on the Apache Commons Pool and DBCP projects.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
ConnectionPool(String id, DatabaseType type, String connectURI, String user, String password, int minIdle, int maxActive)
          Creates a new ConnectionPool instance.
 
Method Summary
(package private)  Connection getConnection()
          Returns a Connection from the pool.
(package private)  DatabaseType getType()
          Returns the type of database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPool

ConnectionPool(String id,
               DatabaseType type,
               String connectURI,
               String user,
               String password,
               int minIdle,
               int maxActive)
Creates a new ConnectionPool instance.

Parameters:
id -
type -
connectURI -
user -
password -
minIdle -
maxActive -
Method Detail

getConnection

Connection getConnection()
                   throws SQLException
Returns a Connection from the pool.

Returns:
a connection from the pool
Throws:
SQLException

getType

DatabaseType getType()
Returns the type of database.

Returns:
the type of database

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>