org.midao.jdbc.core.wrappers
Class ConnectionProxy
java.lang.Object
org.midao.jdbc.core.wrappers.ConnectionProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class ConnectionProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
SQL Connection Proxy.
Is used by TransactionHandler
to return Proxy instead of real Connection.
- See Also:
org.midao.jdbc.core.transaction.TransactionHandler#getConnection()}
Constructor Summary |
ConnectionProxy(java.sql.Connection conn)
Creates new ConnectionProxy instance |
Method Summary |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
static java.sql.Connection |
newInstance(java.sql.Connection conn)
Creates new SQL Connection Proxy instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionProxy
public ConnectionProxy(java.sql.Connection conn)
- Creates new ConnectionProxy instance
- Parameters:
conn
- SQL Connection
newInstance
public static java.sql.Connection newInstance(java.sql.Connection conn)
- Creates new SQL Connection Proxy instance
- Parameters:
conn
- SQL Connection
- Returns:
- Proxy SQL Connection
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
-
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2013. All Rights Reserved.