Class ConnectionInitializerInterceptor
- java.lang.Object
-
- org.apache.tomcat.jdbc.pool.JdbcInterceptor
-
- org.openbravo.apachejdbcconnectionpool.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.
-
-
Constructor Summary
Constructors Constructor Description ConnectionInitializerInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPoolInterceptorsClassNames()
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.
-
-
-
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 classorg.apache.tomcat.jdbc.pool.JdbcInterceptor
-
getPoolInterceptorsClassNames
public String getPoolInterceptorsClassNames()
- Specified by:
getPoolInterceptorsClassNames
in interfacePoolInterceptorProvider
- Returns:
- A string containing a list of full interceptor class names separated by semicolons
-
-