D
- public class CallableStatementInvocationHandler<D> extends AbstractPreparedStatementInvocationHandler<D,java.sql.CallableStatement>
AbstractInvocationHandler.SimpleInvoker
lockList, selectForUpdate
fileSupport, transactionContext
cluster, logger
Constructor and Description |
---|
CallableStatementInvocationHandler(java.sql.Connection connection,
SQLProxy<D,java.sql.Connection> proxy,
Invoker<D,java.sql.Connection,java.sql.CallableStatement> invoker,
java.util.Map<Database<D>,java.sql.CallableStatement> statementMap,
TransactionContext<D> transactionContext,
FileSupport fileSupport) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy<D,java.sql.CallableStatement,?> |
getInvocationStrategy(java.sql.CallableStatement statement,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected boolean |
isBatchMethod(java.lang.reflect.Method method) |
protected boolean |
isIndexType(java.lang.Class<?> type) |
getInvoker
close, extractLocks, getDatabaseProperties, handlePartialFailure, isEndBatchMethod, isRecordable, isSelectForUpdate, isSQLMethod, postInvoke, record, replay
close, createObject, getParent, getParentProxy, getRoot
addChild, detectClusterPanic, entries, entry, getDatabaseCluster, getObject, handleFailure, handleFailures, invoke, removeChild, removeChildren, retain
public CallableStatementInvocationHandler(java.sql.Connection connection, SQLProxy<D,java.sql.Connection> proxy, Invoker<D,java.sql.Connection,java.sql.CallableStatement> invoker, java.util.Map<Database<D>,java.sql.CallableStatement> statementMap, TransactionContext<D> transactionContext, FileSupport fileSupport) throws java.lang.Exception
connection
- proxy
- invoker
- statementMap
- transactionContext
- fileSupport
- java.lang.Exception
protected InvocationStrategy<D,java.sql.CallableStatement,?> getInvocationStrategy(java.sql.CallableStatement statement, java.lang.reflect.Method method, java.lang.Object[] parameters) throws java.lang.Exception
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 DatabaseWriteInvocationStrategy
.getInvocationStrategy
in class AbstractPreparedStatementInvocationHandler<D,java.sql.CallableStatement>
statement
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersjava.lang.Exception
AbstractStatementInvocationHandler.getInvocationStrategy(java.sql.Statement, java.lang.reflect.Method, java.lang.Object[])
protected boolean isBatchMethod(java.lang.reflect.Method method)
isBatchMethod
in class AbstractPreparedStatementInvocationHandler<D,java.sql.CallableStatement>
AbstractPreparedStatementInvocationHandler.isBatchMethod(java.lang.reflect.Method)
protected boolean isIndexType(java.lang.Class<?> type)
isIndexType
in class AbstractPreparedStatementInvocationHandler<D,java.sql.CallableStatement>
AbstractPreparedStatementInvocationHandler.isIndexType(java.lang.Class)