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_METHODS
protected int
queryStack
protected static Set<String>
SET_METHODS
protected Log
statementLog
-
Constructor Summary
Constructors Constructor Description BaseJdbcLogger(Log log, int queryStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearColumnInfo()
protected void
debug(String text, boolean input)
protected Object
getColumn(Object key)
protected String
getColumnString()
protected String
getParameterValueString()
protected boolean
isDebugEnabled()
protected boolean
isTraceEnabled()
protected String
objectValueString(Object value)
protected String
removeExtraWhitespace(String original)
protected void
setColumn(Object key, Object value)
protected void
trace(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)
-
-