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 Details

    • SET_METHODS

      protected static final Set<String> SET_METHODS
    • EXECUTE_METHODS

      protected static final Set<String> EXECUTE_METHODS
    • statementLog

      protected final Log statementLog
    • queryStack

      protected final int queryStack
  • Constructor Details

    • BaseJdbcLogger

      public BaseJdbcLogger​(Log log, int queryStack)
  • Method Details

    • setColumn

      protected void setColumn​(Object key, Object value)
    • getColumn

      protected Object getColumn​(Object key)
    • getParameterValueString

      protected String getParameterValueString()
    • objectValueString

      protected String objectValueString​(Object value)
    • getColumnString

      protected String getColumnString()
    • clearColumnInfo

      protected void clearColumnInfo()
    • removeExtraWhitespace

      protected String removeExtraWhitespace​(String original)
    • isDebugEnabled

      protected boolean isDebugEnabled()
    • isTraceEnabled

      protected boolean isTraceEnabled()
    • debug

      protected void debug​(String text, boolean input)
    • trace

      protected void trace​(String text, boolean input)