Package org.apache.tomcat.jdbc.pool.interceptor
package org.apache.tomcat.jdbc.pool.interceptor
-
ClassDescriptionAbstraction interceptor.Abstract class that wraps statements and intercepts query executions.Interceptor that keeps track of connection state to avoid roundtrips to the database.Interceptor that sets a query timeout on every created
Statement.Resets the abandoned timer on any activity on the connection, on query execution and on every read of aResultSetobtained from the pooled connection.MBean interface for the ResetAbandonedTimer connection pool interceptor.Slow query report interceptor.The query statistics of one pool: the map its connections book into and the name the map is published under.Holds timing and invocation statistics for a single SQL query.Compares QueryStats by their lastInvocation value.JMX-enabled slow query report interceptor.Everything this class publishes for one pool: the notification broadcaster its clients attach their listeners to and, in thenotifyPool=falsemode, the ObjectName the pool's MBean occupies.The resource published with the MBeanServer for one pool.The management interface of a publishedSlowQueryReportJmx.Registrationresource.JMX MBean interface for exposing slow query statistics via JMX.Interceptor that cachesPreparedStatementand/orCallableStatementinstances on a connection.MBean interface for monitoring the statement cache.Implementation of JdbcInterceptor that proxies statements and result sets so that neither the physical session nor the driver's own handles reach the application through them:Statement.getConnection()is answered with the pool's connection handle rather than the driver's connection, andResultSet.getStatement()with the statement handle rather than the driver's statement - the hiding of the physical connection this interceptor exists for (Bug 48392, described in this interceptor's section of thejdbc-pooldocumentation page).Invocation handler that proxies ResultSet instances.Keeps track of statements associated with a connection and invokes close uponConnection.close()Useful for applications that don't close the associated statements after being done with a connection.