nl.knowledgeplaza.util.jdbc
Class CallableStatement
java.lang.Object
nl.knowledgeplaza.util.jdbc.PreparedStatement
nl.knowledgeplaza.util.jdbc.CallableStatement
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class CallableStatement
- extends PreparedStatement
This is for logging SQL statements to log4j.
Use the wrap method in Connection to wrap a connection object and that is it.
- Version:
- $Revision: 1.3 $
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
|
Constructor Summary |
protected |
CallableStatement(java.sql.CallableStatement callableStatement)
|
|
Method Summary |
java.sql.CallableStatement |
getCallableStatement()
returns the original object for handling driver specific functions |
java.lang.String |
getMyPrefix()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
static java.sql.CallableStatement |
wrapCallableStatement(java.sql.CallableStatement callableStatement,
java.lang.String sql,
Connection connection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
CallableStatement
protected CallableStatement(java.sql.CallableStatement callableStatement)
getCallableStatement
public java.sql.CallableStatement getCallableStatement()
- returns the original object for handling driver specific functions
wrapCallableStatement
public static java.sql.CallableStatement wrapCallableStatement(java.sql.CallableStatement callableStatement,
java.lang.String sql,
Connection connection)
- Parameters:
callableStatement -
- Returns:
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- Overrides:
invoke in class PreparedStatement
- Throws:
java.lang.Throwable
getMyPrefix
public java.lang.String getMyPrefix()
- Overrides:
getMyPrefix in class PreparedStatement
Copyright © 2010 KnowledgePlaza. All Rights Reserved.