org.databene.platform.db
Class PooledConnectionHandler

java.lang.Object
  extended by org.databene.platform.db.PooledConnectionHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class PooledConnectionHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Wraps a connection for logging of JDBC connection handling.
Created: 24.08.2008 18:47:44

Since:
0.5.5
Author:
Volker Bergmann

Constructor Summary
PooledConnectionHandler(DBSystem db, java.sql.Connection realConnection)
           
 
Method Summary
 void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 void close()
           
 java.sql.Connection getConnection()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledConnectionHandler

public PooledConnectionHandler(DBSystem db,
                               java.sql.Connection realConnection)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

close

public void close()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()

addConnectionEventListener

public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)

removeConnectionEventListener

public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)


Copyright © 2010. All Rights Reserved.