public class PooledConnectionComponentInstance extends Object implements ComponentInstance<PooledConnection>, ConnectionEventListener
| Constructor and Description |
|---|
PooledConnectionComponentInstance(ComponentPool<PooledConnection> componentPool,
PooledConnection pooledConnection) |
PooledConnectionComponentInstance(ComponentPool<PooledConnection> componentPool,
PooledConnection pooledConnection,
String validationQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connectionClosed(ConnectionEvent connectionEvent) |
void |
connectionErrorOccurred(ConnectionEvent connectionEvent) |
StackTraceElement[] |
getExistentialStackTrace() |
PooledConnection |
serve() |
boolean |
validate() |
public PooledConnectionComponentInstance(ComponentPool<PooledConnection> componentPool, PooledConnection pooledConnection) throws SQLException
SQLExceptionpublic PooledConnectionComponentInstance(ComponentPool<PooledConnection> componentPool, PooledConnection pooledConnection, String validationQuery) throws SQLException
SQLExceptionpublic StackTraceElement[] getExistentialStackTrace()
getExistentialStackTrace in interface Existentialpublic boolean validate()
validate in interface ComponentInstance<PooledConnection>public void connectionClosed(ConnectionEvent connectionEvent)
connectionClosed in interface ConnectionEventListenerpublic void connectionErrorOccurred(ConnectionEvent connectionEvent)
connectionErrorOccurred in interface ConnectionEventListenerpublic PooledConnection serve()
serve in interface ComponentInstance<PooledConnection>public void close()
throws SQLException
close in interface ComponentInstance<PooledConnection>SQLExceptionCopyright © 2013. All Rights Reserved.