Class LogSqlBuilder

java.lang.Object
org.jumpmind.db.sql.LogSqlBuilder

public class LogSqlBuilder extends Object
  • Field Details

    • MAX_FIELD_SIZE_TO_PRINT_TO_LOG

      public static final int MAX_FIELD_SIZE_TO_PRINT_TO_LOG
      See Also:
    • encoding

      protected BinaryEncoding encoding
    • useJdbcTimestampFormat

      protected boolean useJdbcTimestampFormat
    • logSlowSqlThresholdMillis

      protected int logSlowSqlThresholdMillis
    • consoleLogSlowSqlThresholdMillis

      protected int consoleLogSlowSqlThresholdMillis
    • logSqlParametersInline

      protected boolean logSqlParametersInline
  • Constructor Details

    • LogSqlBuilder

      public LogSqlBuilder()
  • Method Details

    • logSql

      public void logSql(org.slf4j.Logger loggerArg, String sql, Object[] args, int[] types, long executionTimeMillis)
    • logSql

      public void logSql(org.slf4j.Logger loggerArg, String message, String sql, Object[] args, int[] types, long executionTimeMillis)
    • logSqlAfterException

      public SQLException logSqlAfterException(org.slf4j.Logger loggerArg, String sql, Object[] args, SQLException e)
    • buildDynamicSqlForLog

      public String buildDynamicSqlForLog(String sql, Object[] args, int[] types)
    • formatValue

      public String formatValue(Object object, int type)
    • formatUnknownType

      protected String formatUnknownType(Object object)
    • formatStringValue

      protected String formatStringValue(Object object)
    • formatDateTimeValue

      protected String formatDateTimeValue(Object object, int type)
    • formatBinaryValue

      protected String formatBinaryValue(Object object)
    • isUseJdbcTimestampFormat

      public boolean isUseJdbcTimestampFormat()
    • setUseJdbcTimestampFormat

      public void setUseJdbcTimestampFormat(boolean useJdbcTimestampFormat)
    • getLogSlowSqlThresholdMillis

      public int getLogSlowSqlThresholdMillis()
    • setLogSlowSqlThresholdMillis

      public void setLogSlowSqlThresholdMillis(int logSlowSqlThresholdMillis)
    • getConsoleLogSlowSqlThresholdMillis

      public int getConsoleLogSlowSqlThresholdMillis()
    • setConsoleLogSlowSqlThresholdMillis

      public void setConsoleLogSlowSqlThresholdMillis(int consoleLogSlowSqlThresholdMillis)
    • isLogSqlParametersInline

      public boolean isLogSqlParametersInline()
    • setLogSqlParametersInline

      public void setLogSqlParametersInline(boolean logSqlParametersInline)