org.javasimon.jdbcx
Class SimonPooledConnection
java.lang.Object
org.javasimon.jdbcx.SimonPooledConnection
- All Implemented Interfaces:
- PooledConnection
- Direct Known Subclasses:
- SimonXAConnection
public class SimonPooledConnection
- extends Object
- implements PooledConnection
Simon implementation of PooledConnection, needed for
Simon ConnectionPollDataSource implementation.
All method invokes its real implementation.
See the package description for more
information.
- Since:
- 1.0
- Version:
- $Revision: 304 $ $Date: 2011-04-08 10:39:02 +0200 (Fri, 08 Apr 2011) $
- Author:
- Radovan Sninsky
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pooledConn
private final PooledConnection pooledConn
prefix
private final String prefix
SimonPooledConnection
public SimonPooledConnection(PooledConnection connection,
String prefix)
- Class constructor.
- Parameters:
connection - real pooled connectionprefix - Simon prefix
getConnection
public final Connection getConnection()
throws SQLException
-
- Specified by:
getConnection in interface PooledConnection
- Throws:
SQLException
close
public final void close()
throws SQLException
-
- Specified by:
close in interface PooledConnection
- Throws:
SQLException
addConnectionEventListener
public final void addConnectionEventListener(ConnectionEventListener listener)
-
- Specified by:
addConnectionEventListener in interface PooledConnection
removeConnectionEventListener
public final void removeConnectionEventListener(ConnectionEventListener listener)
-
- Specified by:
removeConnectionEventListener in interface PooledConnection
Copyright © 2011. All Rights Reserved.