D
- public class CallableStatementInvocationHandler<Z,D extends Database<Z>> extends AbstractPreparedStatementInvocationHandler<Z,D,CallableStatement,CallableStatementProxyFactory<Z,D>>
logger
Constructor and Description |
---|
CallableStatementInvocationHandler(CallableStatementProxyFactory<Z,D> proxyFactory) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy |
getInvocationStrategy(CallableStatement statement,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected boolean |
isBatchMethod(Method method) |
protected boolean |
isIndexType(Class<?> type) |
getInvoker, getProxyFactoryFactory
postInvoke
getInvoker
invoke
getProxyFactory
public CallableStatementInvocationHandler(CallableStatementProxyFactory<Z,D> proxyFactory)
protected InvocationStrategy getInvocationStrategy(CallableStatement statement, Method method, Object... parameters) throws SQLException
AbstractInvocationHandler
InvocationStrategy
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 AbstractPreparedStatementInvocationHandler<Z,D extends Database<Z>,CallableStatement,CallableStatementProxyFactory<Z,D extends Database<Z>>>
statement
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersSQLException
AbstractStatementInvocationHandler.getInvocationStrategy(java.sql.Statement, java.lang.reflect.Method, java.lang.Object[])
protected boolean isBatchMethod(Method method)
isBatchMethod
in class AbstractPreparedStatementInvocationHandler<Z,D extends Database<Z>,CallableStatement,CallableStatementProxyFactory<Z,D extends Database<Z>>>
AbstractPreparedStatementInvocationHandler.isBatchMethod(java.lang.reflect.Method)
protected boolean isIndexType(Class<?> type)
isIndexType
in class AbstractPreparedStatementInvocationHandler<Z,D extends Database<Z>,CallableStatement,CallableStatementProxyFactory<Z,D extends Database<Z>>>
AbstractPreparedStatementInvocationHandler.isIndexType(java.lang.Class)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.