|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.logicalcobwebs.proxool.WrappedConnection
public class WrappedConnection
Wraps up a 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,
org.logicalcobwebs.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()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public WrappedConnection(ProxyConnection proxyConnection)
proxyConnection - to wrap| 方法详细信息 |
|---|
public ProxyConnection getProxyConnection()
public Object intercept(Object obj,
Method method,
Object[] args,
org.logicalcobwebs.cglib.proxy.MethodProxy proxy)
throws Throwable
invoke
org.logicalcobwebs.cglib.proxy.MethodInterceptor 中的 interceptThrowableMethodInterceptor.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)
Object 中的 equalsobj - the object to compare
public String toString()
Object 中的 toStringObject.toString()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||