org.springframework.jdbc.core
Class JdbcTemplate.CloseSuppressingInvocationHandler

java.lang.Object
  extended by org.springframework.jdbc.core.JdbcTemplate.CloseSuppressingInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
JdbcTemplate

private class JdbcTemplate.CloseSuppressingInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Invocation handler that suppresses close calls on JDBC Connections. Also prepares returned Statement (Prepared/CallbackStatement) objects.

See Also:
Connection.close()

Field Summary
private  java.sql.Connection target
           
 
Constructor Summary
JdbcTemplate.CloseSuppressingInvocationHandler(java.sql.Connection target)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private final java.sql.Connection target
Constructor Detail

JdbcTemplate.CloseSuppressingInvocationHandler

public JdbcTemplate.CloseSuppressingInvocationHandler(java.sql.Connection target)
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