Class ConnectionInitializerInterceptor

  • All Implemented Interfaces:
    InvocationHandler, PoolInterceptorProvider

    public class ConnectionInitializerInterceptor
    extends org.apache.tomcat.jdbc.pool.JdbcInterceptor
    implements PoolInterceptorProvider
    This interceptor allows to act whenever a connection is requested from the pool and whenever any operation is invoked on a connection provided by Apache JDBC Connection Pool.
    • Field Summary

      • Fields inherited from class org.apache.tomcat.jdbc.pool.JdbcInterceptor

        CLOSE_VAL, EQUALS_VAL, GETCONNECTION_VAL, HASHCODE_VAL, ISCLOSED_VAL, ISVALID_VAL, ISWRAPPERFOR_VAL, properties, TOSTRING_VAL, UNWRAP_VAL
    • Constructor Detail

      • ConnectionInitializerInterceptor

        public ConnectionInitializerInterceptor()
    • Method Detail

      • reset

        public void reset​(org.apache.tomcat.jdbc.pool.ConnectionPool parent,
                          org.apache.tomcat.jdbc.pool.PooledConnection con)
        This method is called each time the connection is borrowed from the pool and it is used to initialize prepareStatement.
        Specified by:
        reset in class org.apache.tomcat.jdbc.pool.JdbcInterceptor