org.geotools.data.jdbc
Class ConnectionPoolManager

java.lang.Object
  extended byorg.geotools.data.jdbc.ConnectionPoolManager

public class ConnectionPoolManager
extends java.lang.Object

Provides a Singleton manager of connection pools.

Version:
$Id: ConnectionPoolManager.java 17701 2006-01-23 00:00:51Z desruisseaux $ Last Modified: $Date: 2003/11/21 18:51:20 $
Author:
Sean Geoghegan, Defence Science and Technology Organisation, $Author: jive $

Method Summary
 void closeAll()
           
 void free(ConnectionPool pool)
           
 ConnectionPool getConnectionPool(javax.sql.ConnectionPoolDataSource cpds)
          Gets a ConnectionPool for a ConnectionPoolDataSource.
static ConnectionPoolManager getInstance()
          Gets the instance of the ConnectionPoolManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionPoolManager getInstance()
Gets the instance of the ConnectionPoolManager.

Returns:
The one and only instance of ConnectionPoolManager.

getConnectionPool

public ConnectionPool getConnectionPool(javax.sql.ConnectionPoolDataSource cpds)
Gets a ConnectionPool for a ConnectionPoolDataSource.

This method will return a connection pool that contains the ConnectionPoolDataSource. If a ConnectionPool exists that already contains the ConnectionPoolDataSource, it will be returned, otherwise a ConnectionPool will be created for the ConnectionPoolDataSource.

Parameters:
cpds - The ConnectionPoolDataSource to get a ConnectionPool for.
Returns:
The ConnectionPool.

free

public void free(ConnectionPool pool)

closeAll

public void closeAll()


Copyright © GeoTools. All Rights Reserved.