|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.dbpool.WebADEConnectionCache
Creates a pool of oracle database connections.
| Constructor Summary | |
WebADEConnectionCache(java.lang.String poolName,
ConnectionPoolParams params)
|
|
WebADEConnectionCache(java.lang.String poolName,
java.util.Properties initProperties)
|
|
| Method Summary | |
void |
close()
Closes all the pooled connections gacefully. |
void |
closePooledConnection(javax.sql.PooledConnection pconn)
Closes the pooled connections gacefully and remove it from the cache. |
void |
connectionClosed(javax.sql.ConnectionEvent event)
|
void |
connectionErrorOccurred(javax.sql.ConnectionEvent event)
|
void |
dispose()
Closes all the pooled connections gracefully on dispose. |
java.sql.Connection |
getConnection()
|
int |
getCurrentConnections()
|
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
long |
getMaxCheckoutTime()
|
int |
getMaxConnections()
|
long |
getMaxIdleTime()
|
long |
getMaxWaitTime()
|
int |
getMinConnections()
|
int |
getOverdueConnectionCount()
|
javax.sql.PooledConnection |
getPooledConnection()
|
javax.sql.PooledConnection |
getPooledConnection(java.lang.String arg0,
java.lang.String arg1)
|
java.lang.String |
getRoleName()
|
java.lang.String |
getURL()
|
java.lang.String |
getUser()
|
void |
reusePooledConnection(javax.sql.PooledConnection pconn)
Return the pooled connection to the pool and mark as available. |
void |
setLoginTimeout(int arg0)
|
void |
setLogWriter(java.io.PrintWriter arg0)
|
void |
setMaxCheckoutTime(long newMaxCheckoutTime)
|
void |
setMaxConnections(int newMaxLimit)
|
void |
setMaxIdleTime(long newMaxIdleTime)
|
void |
setMaxWaitTime(long newMaxWaitTime)
|
void |
setMinConnections(int newMinLimit)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WebADEConnectionCache(java.lang.String poolName,
java.util.Properties initProperties)
throws java.sql.SQLException,
ConnectionPoolInitializationException
poolName - initProperties -
java.sql.SQLException
ConnectionPoolInitializationException
public WebADEConnectionCache(java.lang.String poolName,
ConnectionPoolParams params)
throws java.sql.SQLException,
ConnectionPoolInitializationException
poolName - params -
java.sql.SQLException
ConnectionPoolInitializationException| Method Detail |
public void connectionClosed(javax.sql.ConnectionEvent event)
connectionClosed in interface javax.sql.ConnectionEventListenerConnectionEventListener.connectionClosed(javax.sql.ConnectionEvent)public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
connectionErrorOccurred in interface javax.sql.ConnectionEventListenerConnectionEventListener.connectionErrorOccurred(javax.sql.ConnectionEvent)
public void close()
throws java.sql.SQLException
java.sql.SQLException
public void closePooledConnection(javax.sql.PooledConnection pconn)
throws java.sql.SQLException
pconn -
java.sql.SQLException
public void reusePooledConnection(javax.sql.PooledConnection pconn)
throws java.sql.SQLException
pconn -
java.sql.SQLException
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getPooledConnection()
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
public javax.sql.PooledConnection getPooledConnection(java.lang.String arg0,
java.lang.String arg1)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getPooledConnection(java.lang.String,
java.lang.String)public java.lang.String getRoleName()
public java.lang.String getURL()
public java.lang.String getUser()
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getLoginTimeout()
public void setLoginTimeout(int arg0)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.setLoginTimeout(int)
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.getLogWriter()
public void setLogWriter(java.io.PrintWriter arg0)
throws java.sql.SQLException
setLogWriter in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLExceptionConnectionPoolDataSource.setLogWriter(java.io.PrintWriter)public java.lang.String toString()
Object.toString()public int getCurrentConnections()
public int getOverdueConnectionCount()
public int getMinConnections()
public void setMinConnections(int newMinLimit)
newMinLimit - public int getMaxConnections()
public void setMaxConnections(int newMaxLimit)
newMaxLimit - public long getMaxWaitTime()
public void setMaxWaitTime(long newMaxWaitTime)
newMaxWaitTime - public long getMaxIdleTime()
public void setMaxIdleTime(long newMaxIdleTime)
newMaxIdleTime - public long getMaxCheckoutTime()
public void setMaxCheckoutTime(long newMaxCheckoutTime)
newMaxCheckoutTime -
public void dispose()
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||