Package org.apache.ibatis.logging.jdbc
Class BaseJdbcLogger
- java.lang.Object
-
- org.apache.ibatis.logging.jdbc.BaseJdbcLogger
-
- Direct Known Subclasses:
ConnectionLogger,PreparedStatementLogger,ResultSetLogger,StatementLogger
public abstract class BaseJdbcLogger extends Object
Base class for proxies to do logging.- Author:
- Clinton Begin, Eduardo Macarron
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set<String>EXECUTE_METHODSprotected intqueryStackprotected static Set<String>SET_METHODSprotected LogstatementLog
-
Constructor Summary
Constructors Constructor Description BaseJdbcLogger(Log log, int queryStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearColumnInfo()protected voiddebug(String text, boolean input)protected ObjectgetColumn(Object key)protected StringgetColumnString()protected StringgetParameterValueString()protected booleanisDebugEnabled()protected booleanisTraceEnabled()protected StringobjectValueString(Object value)protected StringremoveExtraWhitespace(String original)protected voidsetColumn(Object key, Object value)protected voidtrace(String text, boolean input)
-
-
-
Constructor Detail
-
BaseJdbcLogger
public BaseJdbcLogger(Log log, int queryStack)
-
-
Method Detail
-
getParameterValueString
protected String getParameterValueString()
-
getColumnString
protected String getColumnString()
-
clearColumnInfo
protected void clearColumnInfo()
-
isDebugEnabled
protected boolean isDebugEnabled()
-
isTraceEnabled
protected boolean isTraceEnabled()
-
debug
protected void debug(String text, boolean input)
-
trace
protected void trace(String text, boolean input)
-
-