| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected class | StatementDecoratorInterceptor.
Class to measure query execute time. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| protected static final String | |
| protected static final String | |
| private static final Log | |
| protected static final String[] | |
| protected static volatile Constructor | resultSetConstructor
the constructor to create the resultSet proxies |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeInvoked()
Implements abstract org. Method invoked when the operation |
| protected Object | Returns: A new proxy for the StatementThe proxy object on which the method that triggered
the creation of the statement was called. proxy, Method The method that was called on the proxy method, Object[] The arguments passed as part of the method call to
the proxy args, Object The statement object that is to be proxied statement, Constructor<?> The constructor for the desired proxy constructor, String The sql of of the statement sql)Creates a proxy for a Statement. |
| public Object | createStatement(Object
the actual proxy object proxy, Method the method that was called. It will be one of the methods defined in method, Object[] STATEMENT_TYPESthe arguments to the method args, Object the statement that the underlying connection created statement, long Elapsed time time)Implements abstract org. Creates a statement interceptor to monitor query response times |
| protected Constructor | |
| protected boolean | |
| protected boolean | |
| protected boolean |
| EXECUTE_QUERY | back to summary |
|---|---|
| protected static final String EXECUTE_QUERY Hides org. | |
| GET_GENERATED_KEYS | back to summary |
|---|---|
| protected static final String GET_GENERATED_KEYS | |
| GET_RESULTSET | back to summary |
|---|---|
| protected static final String GET_RESULTSET | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| RESULTSET_TYPES | back to summary |
|---|---|
| protected static final String[] RESULTSET_TYPES | |
| resultSetConstructor | back to summary |
|---|---|
| protected static volatile Constructor<?> resultSetConstructor the constructor to create the resultSet proxies | |
| StatementDecoratorInterceptor | back to summary |
|---|---|
| public StatementDecoratorInterceptor() | |
| closeInvoked | back to summary |
|---|---|
| public void closeInvoked() Implements abstract org. Doc from org. Method invoked when the operation
| |
| createDecorator | back to summary |
|---|---|
| protected Object createDecorator(Object proxy, Method method, Object[] args, Object statement, Constructor<?> constructor, String sql) throws InstantiationException, IllegalAccessException, InvocationTargetException Creates a proxy for a Statement.
| |
| getResultSetConstructor | back to summary |
|---|---|
protected Constructor
| |
| isExecuteQuery | back to summary |
|---|---|
| protected boolean isExecuteQuery(String methodName) | |
| isExecuteQuery | back to summary |
|---|---|
| protected boolean isExecuteQuery(Method method) | |
| isResultSet | back to summary |
|---|---|
| protected boolean isResultSet(Method method, boolean process) | |
| 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. |
| ResultSetProxy | back to summary |
|---|---|
| public ResultSetProxy(Object st, Object delegate) | |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| protected boolean | |
| private Object | |
| private Constructor | |
| protected T | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| public Object | |
| public Constructor | |
| public T | |
| public String | |
| 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. |
| public void | |
| public void | |
| public void | |
| public String |
| actualProxy | back to summary |
|---|---|
| private Object actualProxy | |
| closed | back to summary |
|---|---|
| protected boolean closed | |
| connection | back to summary |
|---|---|
| private Object connection | |
| constructor | back to summary |
|---|---|
| private Constructor<?> constructor | |
| delegate | back to summary |
|---|---|
| protected T delegate | |
| sql | back to summary |
|---|---|
| private String sql | |
| StatementProxy | back to summary |
|---|---|
| public StatementProxy(T delegate, String sql) | |
| closeInvoked | back to summary |
|---|---|
| public void closeInvoked() | |
| getActualProxy | back to summary |
|---|---|
| public Object getActualProxy() | |
| getConnection | back to summary |
|---|---|
| public Object getConnection() | |
| getConstructor | back to summary |
|---|---|
| public Constructor | |
| getDelegate | back to summary |
|---|---|
| public T getDelegate() | |
| getSql | back to summary |
|---|---|
| public String getSql() | |
| 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.
| |
| setActualProxy | back to summary |
|---|---|
| public void setActualProxy(Object proxy) | |
| setConnection | back to summary |
|---|---|
| public void setConnection(Object proxy) | |
| setConstructor | back to summary |
|---|---|
| public void setConstructor(Constructor<?> constructor) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |