public class WrapperAdapter extends Object implements Wrapper
Wrapper
.Constructor and Description |
---|
WrapperAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWrapperFor(Class<?> iface) |
void |
recordMethodInvocation(Class<?> targetClass,
String methodName,
Class<?>[] argumentTypes,
Object[] arguments)
记录方法调用.
|
void |
replayMethodsInvocation(Object target)
回放记录的方法调用.
|
protected void |
throwSQLExceptionIfNecessary(Collection<SQLException> exceptions) |
<T> T |
unwrap(Class<T> iface) |
public final <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public final boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface Wrapper
public final void recordMethodInvocation(Class<?> targetClass, String methodName, Class<?>[] argumentTypes, Object[] arguments)
targetClass
- 目标类methodName
- 方法名称argumentTypes
- 参数类型arguments
- 参数public final void replayMethodsInvocation(Object target)
target
- 目标对象protected void throwSQLExceptionIfNecessary(Collection<SQLException> exceptions) throws SQLException
SQLException
Copyright © 2018. All rights reserved.