D - S - public abstract class AbstractPreparedStatementInvocationHandler<Z,D extends Database<Z>,S extends PreparedStatement,F extends AbstractPreparedStatementProxyFactory<Z,D,S>> extends AbstractStatementInvocationHandler<Z,D,S,F>
logger| Constructor and Description |
|---|
AbstractPreparedStatementInvocationHandler(Class<S> statementClass,
F proxyFactory,
Set<Method> setMethods) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationStrategy |
getInvocationStrategy(S statement,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected <R> Invoker<Z,D,S,R,SQLException> |
getInvoker(S statement,
Method method,
Object... parameters)
Return the appropriate invoker for the specified method.
|
protected ProxyFactoryFactory<Z,D,S,SQLException,?,? extends Exception> |
getProxyFactoryFactory(S object,
Method method,
Object... parameters) |
protected boolean |
isBatchMethod(Method method) |
protected boolean |
isIndexType(Class<?> type) |
postInvokegetInvokerinvokegetProxyFactoryprotected ProxyFactoryFactory<Z,D,S,SQLException,?,? extends Exception> getProxyFactoryFactory(S object, Method method, Object... parameters) throws SQLException
getProxyFactoryFactory in class AbstractStatementInvocationHandler<Z,D extends Database<Z>,S extends PreparedStatement,F extends AbstractPreparedStatementProxyFactory<Z,D,S>>SQLExceptionprotected InvocationStrategy getInvocationStrategy(S statement, Method method, Object... parameters) throws SQLException
AbstractInvocationHandlerInvocationStrategy for the specified method.
This implementation detects Wrapper methods; and Object.equals(java.lang.Object), Object.hashCode(), and Object.toString().
Default invocation strategy is AllResultsCollector.getInvocationStrategy in class AbstractStatementInvocationHandler<Z,D extends Database<Z>,S extends PreparedStatement,F extends AbstractPreparedStatementProxyFactory<Z,D,S>>statement - the proxied objectmethod - the method to invokeparameters - the method invocation parametersSQLExceptionAbstractStatementInvocationHandler.getInvocationStrategy(java.sql.Statement, java.lang.reflect.Method, java.lang.Object[])protected <R> Invoker<Z,D,S,R,SQLException> getInvoker(S statement, Method method, Object... parameters) throws SQLException
AbstractInvocationHandlergetInvoker in class AbstractStatementInvocationHandler<Z,D extends Database<Z>,S extends PreparedStatement,F extends AbstractPreparedStatementProxyFactory<Z,D,S>>SQLExceptionprotected boolean isBatchMethod(Method method)
isBatchMethod in class AbstractStatementInvocationHandler<Z,D extends Database<Z>,S extends PreparedStatement,F extends AbstractPreparedStatementProxyFactory<Z,D,S>>protected boolean isIndexType(Class<?> type)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.