D
- public class SavepointInvocationHandler<D> extends AbstractChildInvocationHandler<D,java.sql.Connection,java.sql.Savepoint>
AbstractInvocationHandler.SimpleInvoker
cluster, logger
Modifier | Constructor and Description |
---|---|
protected |
SavepointInvocationHandler(java.sql.Connection connection,
SQLProxy<D,java.sql.Connection> proxy,
Invoker<D,java.sql.Connection,java.sql.Savepoint> invoker,
java.util.Map<Database<D>,java.sql.Savepoint> savepointMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(java.sql.Connection connection,
java.sql.Savepoint savepoint) |
protected InvocationStrategy<D,java.sql.Savepoint,?> |
getInvocationStrategy(java.sql.Savepoint object,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
close, createObject, getParent, getParentProxy, getRoot
addChild, detectClusterPanic, entries, entry, getDatabaseCluster, getInvoker, getObject, handleFailure, handleFailures, handlePartialFailure, invoke, isRecordable, isSQLMethod, postInvoke, record, removeChild, removeChildren, replay, retain
protected SavepointInvocationHandler(java.sql.Connection connection, SQLProxy<D,java.sql.Connection> proxy, Invoker<D,java.sql.Connection,java.sql.Savepoint> invoker, java.util.Map<Database<D>,java.sql.Savepoint> savepointMap) throws java.lang.Exception
connection
- the connection that created this savepointproxy
- the invocation handler of the connection that created this savepointinvoker
- the invoker used to create this savepointsavepointMap
- a map of database to underlying savepointjava.lang.Exception
protected InvocationStrategy<D,java.sql.Savepoint,?> getInvocationStrategy(java.sql.Savepoint object, java.lang.reflect.Method method, java.lang.Object[] parameters)
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 AbstractInvocationHandler<D,java.sql.Savepoint>
object
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersAbstractInvocationHandler.getInvocationStrategy(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
protected void close(java.sql.Connection connection, java.sql.Savepoint savepoint) throws java.sql.SQLException
close
in class AbstractChildInvocationHandler<D,java.sql.Connection,java.sql.Savepoint>
java.sql.SQLException
AbstractChildInvocationHandler.close(java.lang.Object, java.lang.Object)