public class IfxConnectionPoolManager
extends java.lang.Object
IfxConnectionPoolManager class manages a pool of reuseable connections.
DataSource,
IfxCoreDataSource,
ConnectionEventListener| Constructor and Description |
|---|
IfxConnectionPoolManager(java.lang.String dsName)
Constructs a Connection Pool Manager given a DataSource Name
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String luser,
java.lang.String lpassword)
try to get a connection from the pool
for this user and password
if unavailable from pool then get new connection from the server
else use connection from pool
|
protected IfxConnectionPoolDataSource |
getCPDS() |
protected int |
getFreeCount() |
public IfxConnectionPoolManager(java.lang.String dsName)
throws java.sql.SQLException
java.sql.SQLException - if error is encountered while instantiating
the object.public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurspublic java.sql.Connection getConnection(java.lang.String luser,
java.lang.String lpassword)
throws java.sql.SQLException
luser - is the user on whose behalf the connection
is being madelpassword - is the user's passwordjava.sql.SQLException - if a database-access error occursprotected int getFreeCount()
protected IfxConnectionPoolDataSource getCPDS()