|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.dbpool.WebADEPooledConnection
| Constructor Summary | |
WebADEPooledConnection(ConnectionPoolParams params)
Deprecated. |
|
WebADEPooledConnection(javax.sql.PooledConnection pooledConnection)
|
|
| Method Summary | |
void |
addConnectionEventListener(javax.sql.ConnectionEventListener l)
Adds the given listener to the list of listeners to this connection's events. |
void |
close()
Closes the pooled connection. |
java.util.Date |
getCreatedTime()
|
int |
getId()
|
java.util.Date |
getLastClosedTime()
|
java.util.Date |
getLastOpenedTime()
|
javax.sql.PooledConnection |
getPooledConnection()
|
long |
getTotalUsageTime()
|
long |
getUsageCount()
|
void |
incrementUsage()
Increments the total usage count for this connection. |
boolean |
isAvailable()
|
void |
releaseConnection()
Releases the connection back to the pool. |
void |
removeConnectionEventListener(javax.sql.ConnectionEventListener l)
Removes the given listener from the list of listeners to this connection's events. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebADEPooledConnection(javax.sql.PooledConnection pooledConnection)
pooledConnection - The pooled connection object to wrap.
public WebADEPooledConnection(ConnectionPoolParams params)
throws java.sql.SQLException
params - The connection pool params with connection information create
a connection with.
java.sql.SQLException - Thrown if a connection could not be created.| Method Detail |
public void addConnectionEventListener(javax.sql.ConnectionEventListener l)
l - The target listenerpublic void removeConnectionEventListener(javax.sql.ConnectionEventListener l)
l - The target listenerpublic void incrementUsage()
public java.util.Date getCreatedTime()
public java.util.Date getLastOpenedTime()
public java.util.Date getLastClosedTime()
public boolean isAvailable()
public long getUsageCount()
public long getTotalUsageTime()
public javax.sql.PooledConnection getPooledConnection()
public void releaseConnection()
public int getId()
public void close()
throws java.sql.SQLException
java.sql.SQLException - Thrown if a error occurs while closing the connection to the
database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||