Package org.apache.xalan.lib.sql
Class ConnectionPoolManager
java.lang.Object
org.apache.xalan.lib.sql.ConnectionPoolManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the connection pool referenced by the namevoidregisterPool(String name, ConnectionPool pool) Register a nuew connection pool to the global pool table.voidremovePool(String name) Remove a pool from the global table.
-
Constructor Details
-
ConnectionPoolManager
public ConnectionPoolManager()
-
-
Method Details
-
registerPool
Register a nuew connection pool to the global pool table. If a pool by that name currently exists, then throw an IllegalArgumentException stating that the pool already exist.- Parameters:
name-pool-
-
removePool
Remove a pool from the global table. If the pool still has active connections, then only mark this pool as inactive and leave it around until all the existing connections are closed.- Parameters:
name-
-
getPool
Return the connection pool referenced by the name- Parameters:
name-- Returns:
ConnectionPoola reference to the ConnectionPool object stored in the Pool Table. If the named pool does not exist, return null
-