|
|||||||||
| Home >> All >> com >> ibatis >> common >> jdbc >> [ logging overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.ibatis.common.jdbc.logging
Class PreparedStatementLogProxy

java.lang.Objectcom.ibatis.common.jdbc.logging.BaseLogProxy
com.ibatis.common.jdbc.logging.PreparedStatementLogProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
- public class PreparedStatementLogProxy
- extends BaseLogProxy
- implements java.lang.reflect.InvocationHandler
- extends BaseLogProxy
PreparedStatement proxy to add logging
| Field Summary | |
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
sql
|
private java.sql.PreparedStatement |
statement
|
| Fields inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy |
EXECUTE_METHODS, GET_METHODS, id, SET_METHODS |
| Constructor Summary | |
private |
PreparedStatementLogProxy(java.sql.PreparedStatement stmt,
java.lang.String sql)
|
| Method Summary | |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] params)
When a method is invoked on a proxy instance, it is wrapped and this method is called instead, so that you may decide at runtime how the original method should behave. |
static java.sql.PreparedStatement |
newInstance(java.sql.PreparedStatement stmt,
java.lang.String sql)
Creates a logging version of a PreparedStatement |
| Methods inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy |
clearColumnInfo, getColumn, getColumnString, getNextId, getTypeString, getValueString, removeBreakingWhitespace, setColumn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static final org.apache.commons.logging.Log log
statement
private java.sql.PreparedStatement statement
sql
private java.lang.String sql
| Constructor Detail |
PreparedStatementLogProxy
private PreparedStatementLogProxy(java.sql.PreparedStatement stmt, java.lang.String sql)
| Method Detail |
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] params) throws java.lang.Throwable
- Description copied from interface:
java.lang.reflect.InvocationHandler - When a method is invoked on a proxy instance, it is wrapped and
this method is called instead, so that you may decide at runtime
how the original method should behave.
- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler
newInstance
public static java.sql.PreparedStatement newInstance(java.sql.PreparedStatement stmt, java.lang.String sql)
- Creates a logging version of a PreparedStatement
|
|||||||||
| Home >> All >> com >> ibatis >> common >> jdbc >> [ logging overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC