Package com.impossibl.jdbc.spy
Class PooledConnectionRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.PooledConnectionRelay
-
- All Implemented Interfaces:
Relay<PooledConnection>
,PooledConnection
public class PooledConnectionRelay extends Object implements Relay<PooledConnection>, PooledConnection
-
-
Field Summary
Fields Modifier and Type Field Description com.impossibl.jdbc.spy.PooledConnectionListener
listener
PooledConnection
target
-
Constructor Summary
Constructors Constructor Description PooledConnectionRelay(PooledConnection target, com.impossibl.jdbc.spy.PooledConnectionListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnectionEventListener(ConnectionEventListener listener)
void
addStatementEventListener(StatementEventListener listener)
void
close()
Connection
getConnection()
PooledConnection
getTarget()
void
removeConnectionEventListener(ConnectionEventListener listener)
void
removeStatementEventListener(StatementEventListener listener)
-
-
-
Field Detail
-
target
public PooledConnection target
-
listener
public com.impossibl.jdbc.spy.PooledConnectionListener listener
-
-
Constructor Detail
-
PooledConnectionRelay
public PooledConnectionRelay(PooledConnection target, com.impossibl.jdbc.spy.PooledConnectionListener listener)
-
-
Method Detail
-
getTarget
public PooledConnection getTarget()
- Specified by:
getTarget
in interfaceRelay<PooledConnection>
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfacePooledConnection
- Throws:
SQLException
-
addStatementEventListener
public void addStatementEventListener(StatementEventListener listener)
- Specified by:
addStatementEventListener
in interfacePooledConnection
-
removeStatementEventListener
public void removeStatementEventListener(StatementEventListener listener)
- Specified by:
removeStatementEventListener
in interfacePooledConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener listener)
- Specified by:
removeConnectionEventListener
in interfacePooledConnection
-
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener listener)
- Specified by:
addConnectionEventListener
in interfacePooledConnection
-
close
public void close() throws SQLException
- Specified by:
close
in interfacePooledConnection
- Throws:
SQLException
-
-