org.javasimon.jdbcx
Class SimonPooledConnection

java.lang.Object
  extended by 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

Field Summary
private  PooledConnection pooledConn
           
private  String prefix
           
 
Constructor Summary
SimonPooledConnection(PooledConnection connection, String prefix)
          Class constructor.
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
          
 void close()
          
 Connection getConnection()
          
 void removeConnectionEventListener(ConnectionEventListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.PooledConnection
addStatementEventListener, removeStatementEventListener
 

Field Detail

pooledConn

private final PooledConnection pooledConn

prefix

private final String prefix
Constructor Detail

SimonPooledConnection

public SimonPooledConnection(PooledConnection connection,
                             String prefix)
Class constructor.

Parameters:
connection - real pooled connection
prefix - Simon prefix
Method Detail

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.