Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.jdbc.logging
Class ConnectionLogProxy  view ConnectionLogProxy download ConnectionLogProxy.java

java.lang.Object
  extended bycom.ibatis.common.jdbc.logging.BaseLogProxy
      extended bycom.ibatis.common.jdbc.logging.ConnectionLogProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ConnectionLogProxy
extends BaseLogProxy
implements java.lang.reflect.InvocationHandler

Connection proxy to add logging


Field Summary
private  java.sql.Connection connection
           
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.ibatis.common.jdbc.logging.BaseLogProxy
EXECUTE_METHODS, GET_METHODS, id, SET_METHODS
 
Constructor Summary
private ConnectionLogProxy(java.sql.Connection conn)
           
 
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.Connection newInstance(java.sql.Connection conn)
          Creates a logging version of a connection
 
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

connection

private java.sql.Connection connection
Constructor Detail

ConnectionLogProxy

private ConnectionLogProxy(java.sql.Connection conn)
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:
invoke in interface java.lang.reflect.InvocationHandler

newInstance

public static java.sql.Connection newInstance(java.sql.Connection conn)
Creates a logging version of a connection