Class PreparedStatementProxy
java.lang.Object
org.castor.cpa.persistence.sql.connection.PreparedStatementProxy
- All Implemented Interfaces:
InvocationHandler
Proxy class for JDBC PreparedStatement class, to allow information gathering
for the purpose of SQL statement logging.
- Since:
- 1.0.4
- Version:
- $Revision: 8107 $ $Date$
- Author:
- Ralf Joachim
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PreparedStatementProxy
(PreparedStatement stmt, String sql) Creates an instance of this class. -
Method Summary
-
Constructor Details
-
PreparedStatementProxy
Creates an instance of this class.- Parameters:
stmt
- Prepared statement to be proxied.sql
- SQL string.
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-