createStatement(Object, Method, Object[], Object, long)
method.
| Modifier and Type | Field and Description |
|---|---|
| protected static final Constructor | constructors
the constructors that are used to create statement proxies |
| protected static final String | |
| protected static final int | |
| protected static final String | |
| protected static final String | |
| protected static final String | |
| protected static final String[] | |
| protected static final String | |
| protected static final String | |
| protected static final int | |
| protected static final String | |
| protected static final int | |
| protected static final int | |
| protected static final String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract Object | Returns: ajava. objectthe 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)This method will be invoked after a successful statement creation. |
| protected Constructor | Returns: - returns a constructor used to create new instances- the index of the constructor idx, Class<?> - the interface that the proxy will implement clazz)Creates a constructor for a proxy class, if one doesn't already exist |
| 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.Overrides org. Implements java. Gets invoked each time an operation on |
| protected boolean | |
| protected boolean | Returns: returns true if the method name matchedthe method being invoked on the proxy method, boolean boolean result used for recursion process)Returns true if the method that is being invoked matches one of the statement types. |
| protected boolean | |
| public void | reset(ConnectionPool
- the connection pool owning the connection parent, PooledConnection - the pooled connection con)Implements abstract org. no-op for this interceptor. |
| constructors | back to summary |
|---|---|
| protected static final Constructor<?>[] constructors the constructors that are used to create statement proxies | |
| CREATE_STATEMENT | back to summary |
|---|---|
| protected static final String CREATE_STATEMENT | |
| CREATE_STATEMENT_IDX | back to summary |
|---|---|
| protected static final int CREATE_STATEMENT_IDX | |
| EXECUTE | back to summary |
|---|---|
| protected static final String EXECUTE | |
| EXECUTE_BATCH | back to summary |
|---|---|
| protected static final String EXECUTE_BATCH | |
| EXECUTE_QUERY | back to summary |
|---|---|
| protected static final String EXECUTE_QUERY | |
| EXECUTE_TYPES | back to summary |
|---|---|
| protected static final String[] EXECUTE_TYPES | |
| EXECUTE_UPDATE | back to summary |
|---|---|
| protected static final String EXECUTE_UPDATE | |
| PREPARE_CALL | back to summary |
|---|---|
| protected static final String PREPARE_CALL | |
| PREPARE_CALL_IDX | back to summary |
|---|---|
| protected static final int PREPARE_CALL_IDX | |
| PREPARE_STATEMENT | back to summary |
|---|---|
| protected static final String PREPARE_STATEMENT | |
| PREPARE_STATEMENT_IDX | back to summary |
|---|---|
| protected static final int PREPARE_STATEMENT_IDX | |
| STATEMENT_TYPE_COUNT | back to summary |
|---|---|
| protected static final int STATEMENT_TYPE_COUNT | |
| STATEMENT_TYPES | back to summary |
|---|---|
| protected static final String[] STATEMENT_TYPES | |
| AbstractCreateStatementInterceptor | back to summary |
|---|---|
| public AbstractCreateStatementInterceptor() | |
| closeInvoked | back to summary |
|---|---|
| public abstract void closeInvoked() Method invoked when the operation | |
| createStatement | back to summary |
|---|---|
| public abstract Object createStatement(Object proxy, Method method, Object[] args, Object statement, long time) This method will be invoked after a successful statement creation. This method can choose to return a wrapper
around the statement or return the statement itself.
If this method returns a wrapper then it should return a wrapper object that implements one of the following interfaces.
| |
| getConstructor | back to summary |
|---|---|
| protected Constructor Creates a constructor for a proxy class, if one doesn't already exist
| |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Overrides org. Implements java. Doc from org. Gets invoked each time an operation on
| |
| isExecute | back to summary |
|---|---|
| protected boolean isExecute(Method method, boolean process) Returns true if the method that is being invoked matches one of the execute types.
| |
| isStatement | back to summary |
|---|---|
| protected boolean isStatement(Method method, boolean process) Returns true if the method that is being invoked matches one of the statement types.
| |
| process | back to summary |
|---|---|
| protected boolean process(String[] names, Method method, boolean process) | |
| reset | back to summary |
|---|---|
| public void reset(ConnectionPool parent, PooledConnection con) Implements abstract org. no-op for this interceptor. no state is stored.
| |