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 PooledConnection
SQLException
public final void close() throws SQLException
close
in interface PooledConnection
SQLException
public final void addConnectionEventListener(ConnectionEventListener listener)
addConnectionEventListener
in interface PooledConnection
public final void removeConnectionEventListener(ConnectionEventListener listener)
removeConnectionEventListener
in interface PooledConnection
public void addStatementEventListener(StatementEventListener listener)
addStatementEventListener
in interface PooledConnection
public void removeStatementEventListener(StatementEventListener listener)
removeStatementEventListener
in interface PooledConnection
Copyright © 2019. All rights reserved.