|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logicalcobwebs.proxool.WrappedConnection
public class WrappedConnection
Wraps up a ProxyConnection
. It is proxied as a Connection
Constructor Summary | |
---|---|
WrappedConnection(ProxyConnection proxyConnection)
Construct this wrapper around the proxy connection |
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
java.lang.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 |
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
Delegates to invoke |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.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 . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrappedConnection(ProxyConnection proxyConnection)
proxyConnection
- to wrapMethod Detail |
---|
public ProxyConnection getProxyConnection()
public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy) throws java.lang.Throwable
invoke
java.lang.Throwable
MethodInterceptor#intercept(java.lang.Object, java.lang.reflect.Method, java.lang.Object[], org.logicalcobwebs.cglib.proxy.MethodProxy)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.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.
java.lang.Throwable
InvocationHandler#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 java.lang.String getAlias()
alias
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |