org.castor.jdo.drivers
Class ConnectionProxyFactory
java.lang.Object
org.castor.jdo.drivers.ConnectionProxyFactory
public final class ConnectionProxyFactory
extends java.lang.Object
Factory class for proxies for JDBC Connection, PreparedStatement and CallableStatement
classes. The proxies allow to gather information for the purpose of SQL statement
logging.
protected static CallableStatement | newCallableStatementProxy(CallableStatement statement, String sql) - Factory method for creating a CallableStamentProxy
|
static Connection | newConnectionProxy(Connection connection) - Factory method for creating a ConnectionProxy.
|
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
|
newCallableStatementProxy
protected static CallableStatement newCallableStatementProxy(CallableStatement statement,
String sql)
Factory method for creating a CallableStamentProxy
statement
- Callable statement to be proxied.sql
- SQL string.
- Callable statement proxy.
newConnectionProxy
public static Connection newConnectionProxy(Connection connection)
Factory method for creating a ConnectionProxy.
connection
- The JDBC connection to proxy.
- The JDBC connection proxy.
newConnectionProxy
public static Connection newConnectionProxy(Connection connection,
String calledBy)
Factory method for creating a ConnectionProxy.
connection
- The JDBC connection to proxy.calledBy
- Name of the class using creating and this proxy class.
- The JDBC connection proxy.
newPreparedStatementProxy
protected static PreparedStatement newPreparedStatementProxy(PreparedStatement statement,
String sql)
Factory method for creating a PreparedStamentProxy
statement
- Prepared statement to be proxied.sql
- SQL string.
- Prepared statement proxy.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com