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
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)
-
Field Details
-
SET_METHODS
-
EXECUTE_METHODS
-
statementLog
-
queryStack
protected final int queryStack
-
-
Constructor Details
-
BaseJdbcLogger
-
-
Method Details
-
setColumn
-
getColumn
-
getParameterValueString
-
objectValueString
-
getColumnString
-
clearColumnInfo
protected void clearColumnInfo() -
removeExtraWhitespace
-
isDebugEnabled
protected boolean isDebugEnabled() -
isTraceEnabled
protected boolean isTraceEnabled() -
debug
-
trace
-