public class SimonPooledConnection extends Object implements PooledConnection
PooledConnection, needed for
Simon ConnectionPollDataSource implementation.
All method invokes its real implementation.
See the package description for more
information.| Constructor and Description |
|---|
SimonPooledConnection(PooledConnection connection,
String prefix)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener listener) |
void |
addStatementEventListener(StatementEventListener listener) |
void |
close() |
Connection |
getConnection() |
void |
removeConnectionEventListener(ConnectionEventListener listener) |
void |
removeStatementEventListener(StatementEventListener listener) |
public SimonPooledConnection(PooledConnection connection, String prefix)
connection - real pooled connectionprefix - Simon prefixpublic final Connection getConnection() throws SQLException
getConnection in interface PooledConnectionSQLExceptionpublic final void close() throws SQLException
close in interface PooledConnectionSQLExceptionpublic final void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener in interface PooledConnectionpublic final void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener in interface PooledConnectionpublic void addStatementEventListener(StatementEventListener listener)
addStatementEventListener in interface PooledConnectionpublic void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener in interface PooledConnectionCopyright © 2019. All rights reserved.