public final class ConnectionProxyFactory extends Object
Modifier and Type | Method and Description |
---|---|
protected static CallableStatement |
newCallableStatementProxy(CallableStatement statement,
String sql)
Factory method for creating a CallableStamentProxy.
|
static Connection |
newConnectionProxy(Connection connection,
String calledBy)
Factory method for creating a ConnectionProxy.
|
protected static PreparedStatement |
newPreparedStatementProxy(PreparedStatement statement,
String sql)
Factory method for creating a PreparedStamentProxy.
|
public static Connection newConnectionProxy(Connection connection, String calledBy)
connection
- The JDBC connection to proxy.calledBy
- Name of the class using creating and this proxy class.protected static PreparedStatement newPreparedStatementProxy(PreparedStatement statement, String sql)
statement
- Prepared statement to be proxied.sql
- SQL string.protected static CallableStatement newCallableStatementProxy(CallableStatement statement, String sql)
statement
- Callable statement to be proxied.sql
- SQL string.Copyright © 2013. All rights reserved.