Hook.CloseConnection, Hook.DestroyConnection, Hook.GetConnection, Hook.GetConnectionTimeout, Hook.InitConnection, Hook.MethodInvocation, Hook.ResultSetRetrieval, Hook.StatementExecution, Hook.StatementProceedingPoint| Modifier and Type | Method and Description |
|---|---|
void |
on(Object proxy,
Method method,
Object[] args)
An application hook that will be invoked before a method on any of the proxied JDBC interfaces is
invoked.
|
void on(Object proxy, Method method, Object[] args) throws SQLException
Note that any method invocations on the hook Object proxy parameter will recursively
re-enter this same hook and must be done with extreme care as they may cause infinite recursion and
a StackOverflowError.
For further implementation details see the comments for
onMethodInvocation.
proxy - the JDBC object proxy that the method was invoked on;
this can be the Connection proxy, the Statement proxy, etcmethod - the invoked methodargs - the method argumentsSQLException - to indicate that an SQL error has occurredCopyright © 2013-2019 vibur.org. All Rights Reserved.