|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.connection.ConnectionProxyFactory
public final class ConnectionProxyFactory
Factory class for proxies for JDBC Connection, PreparedStatement and CallableStatement classes. The proxies allow to gather information for the purpose of SQL statement logging.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||