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 java.lang.Object
Base class for proxies to do logging.- Author:
- Clinton Begin, Eduardo Macarron
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<java.lang.String>
EXECUTE_METHODS
protected int
queryStack
protected static java.util.Set<java.lang.String>
SET_METHODS
protected Log
statementLog
-
Constructor Summary
Constructors Constructor Description BaseJdbcLogger(Log log, int queryStack)
-
Method Summary
Modifier and Type Method Description protected void
clearColumnInfo()
protected void
debug(java.lang.String text, boolean input)
protected java.lang.Object
getColumn(java.lang.Object key)
protected java.lang.String
getColumnString()
protected java.lang.String
getParameterValueString()
protected boolean
isDebugEnabled()
protected boolean
isTraceEnabled()
protected java.lang.String
objectValueString(java.lang.Object value)
protected java.lang.String
removeBreakingWhitespace(java.lang.String original)
protected void
setColumn(java.lang.Object key, java.lang.Object value)
protected void
trace(java.lang.String text, boolean input)
-
-
-
Field Detail
-
SET_METHODS
protected static final java.util.Set<java.lang.String> SET_METHODS
-
EXECUTE_METHODS
protected static final java.util.Set<java.lang.String> EXECUTE_METHODS
-
statementLog
protected final Log statementLog
-
queryStack
protected final int queryStack
-
-
Constructor Detail
-
BaseJdbcLogger
public BaseJdbcLogger(Log log, int queryStack)
-
-
Method Detail
-
setColumn
protected void setColumn(java.lang.Object key, java.lang.Object value)
-
getColumn
protected java.lang.Object getColumn(java.lang.Object key)
-
getParameterValueString
protected java.lang.String getParameterValueString()
-
objectValueString
protected java.lang.String objectValueString(java.lang.Object value)
-
getColumnString
protected java.lang.String getColumnString()
-
clearColumnInfo
protected void clearColumnInfo()
-
removeBreakingWhitespace
protected java.lang.String removeBreakingWhitespace(java.lang.String original)
-
isDebugEnabled
protected boolean isDebugEnabled()
-
isTraceEnabled
protected boolean isTraceEnabled()
-
debug
protected void debug(java.lang.String text, boolean input)
-
trace
protected void trace(java.lang.String text, boolean input)
-
-