public class WrappedConnection extends Object implements net.sf.cglib.proxy.MethodInterceptor
ProxyConnection. It is proxied as a Connection| 构造器和说明 |
|---|
WrappedConnection(ProxyConnection proxyConnection)
Construct this wrapper around the proxy connection
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj)
If the object passed to this method is actually a proxied version of this
class then compare the real class with this one.
|
String |
getAlias()
Get the alias of the connection pool this connection belongs to
|
long |
getId()
The ID for the encapsulated
ProxyConnection. |
ProxyConnection |
getProxyConnection()
Get the encapsulated proxy connection
|
Object |
intercept(Object obj,
Method method,
Object[] args,
net.sf.cglib.proxy.MethodProxy proxy)
Delegates to
invoke |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Delegates all operations to the encapsulated
ProxyConnection except for:
close()
equals()
hashCode()
isClosed()
getMetaData()
finalize()
It also spots mutators and remembers that the property has been changed so that it can
be reset. |
String |
toString() |
public WrappedConnection(ProxyConnection proxyConnection)
proxyConnection - to wrappublic ProxyConnection getProxyConnection()
public Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable
invokeintercept 在接口中 net.sf.cglib.proxy.MethodInterceptorThrowableMethodInterceptor#intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], org.logicalcobwebs.cglib.proxy.MethodProxy)public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
ProxyConnection except for:
reset. And any statements that are returned are remembered
so that we can track whether all statements have been closed properly when the connection
is returned to the pool.ThrowableInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])public long getId()
ProxyConnection. This will still
return the correct value after the connection is closed.public String getAlias()
aliaspublic boolean equals(Object obj)
public String toString()
toString 在类中 ObjectObject.toString()Copyright © 2024. All rights reserved.