Interface PooledConnectionManager
-
- All Known Implementing Classes:
CPDSConnectionFactory
,KeyedCPDSConnectionFactory
interface PooledConnectionManager
Methods to manage PoolableConnections and the connection pools that source them.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closePool(java.lang.String userName)
Closes the connection pool associated with the given user.void
invalidate(javax.sql.PooledConnection pc)
Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.void
setPassword(java.lang.String password)
Sets the database password used when creating connections.
-
-
-
Method Detail
-
invalidate
void invalidate(javax.sql.PooledConnection pc) throws java.sql.SQLException
Closes the PooledConnection and remove it from the connection pool to which it belongs, adjusting pool counters.- Parameters:
pc
- PooledConnection to be invalidated- Throws:
java.sql.SQLException
- if an SQL error occurs closing the connection
-
setPassword
void setPassword(java.lang.String password)
Sets the database password used when creating connections.- Parameters:
password
- password used when authenticating to the database
-
closePool
void closePool(java.lang.String userName) throws java.sql.SQLException
Closes the connection pool associated with the given user.- Parameters:
userName
- user name- Throws:
java.sql.SQLException
- if an error occurs closing idle connections in the pool
-
-