|
|
|
@ -455,11 +455,14 @@ public abstract class ProxyConnection implements Connection
|
|
|
|
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
|
|
|
|
|
{
|
|
|
|
|
final String methodName = method.getName();
|
|
|
|
|
if ("abort".equals(methodName)) {
|
|
|
|
|
if ("isValid".equals(methodName)) {
|
|
|
|
|
return Boolean.FALSE;
|
|
|
|
|
}
|
|
|
|
|
else if ("close".equals(methodName)) {
|
|
|
|
|
return Void.TYPE;
|
|
|
|
|
}
|
|
|
|
|
else if ("isValid".equals(methodName)) {
|
|
|
|
|
return Boolean.FALSE;
|
|
|
|
|
else if ("abort".equals(methodName)) {
|
|
|
|
|
return Void.TYPE;
|
|
|
|
|
}
|
|
|
|
|
else if ("toString".equals(methodName)) {
|
|
|
|
|
return ClosedConnection.class.getCanonicalName();
|
|
|
|
|