| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected ExceptionInterceptor | |
| protected MysqlPooledConnection | |
| protected Map |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkAndFireConnectionError(SQLException
the SQLException that has occurred sqlEx)Fires connection error event if required, before re-throwing exception |
| exceptionInterceptor | back to summary |
|---|---|
| protected ExceptionInterceptor exceptionInterceptor | |
| pooledConnection | back to summary |
|---|---|
| protected MysqlPooledConnection pooledConnection | |
| unwrappedInterfaces | back to summary |
|---|---|
| protected Map<Class<?>, Object> unwrappedInterfaces | |
| WrapperBase | back to summary |
|---|---|
| protected WrapperBase(MysqlPooledConnection pooledConnection) | |
| checkAndFireConnectionError | back to summary |
|---|---|
| protected void checkAndFireConnectionError(SQLException sqlEx) throws SQLException Fires connection error event if required, before re-throwing exception
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Processes a method invocation on a proxy instance and returns the result. |
| private Object | Returns: proxy objectobject to be proxied toProxy, Class<?> desired class clazz)Recursively checks for interfaces on the given object to determine if it implements a java.sql interface, and if so, proxies the instance so that we can catch and fire SQL errors. |
| invokeOn | back to summary |
|---|---|
| pack-priv Object invokeOn | |
| ConnectionErrorFiringInvocationHandler | back to summary |
|---|---|
| public ConnectionErrorFiringInvocationHandler(Object toInvokeOn) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| proxyIfInterfaceIsJdbc | back to summary |
|---|---|
| private Object proxyIfInterfaceIsJdbc(Object toProxy, Class<?> clazz) Recursively checks for interfaces on the given object to determine if it implements a java.sql interface, and if so, proxies the instance so that we can catch and fire SQL errors. | |