Package org.jumpmind.db.sql
Class LogSqlBuilder
java.lang.Object
org.jumpmind.db.sql.LogSqlBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected BinaryEncodingprotected intprotected booleanstatic final intprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDynamicSqlForLog(String sql, Object[] args, int[] types) protected StringformatBinaryValue(Object object) protected StringformatDateTimeValue(Object object, int type) protected StringformatStringValue(Object object) protected StringformatUnknownType(Object object) formatValue(Object object, int type) intintbooleanbooleanvoidlogSql(org.slf4j.Logger loggerArg, String sql, Object[] args, int[] types, long executionTimeMillis) voidlogSql(org.slf4j.Logger loggerArg, String message, String sql, Object[] args, int[] types, long executionTimeMillis) logSqlAfterException(org.slf4j.Logger loggerArg, String sql, Object[] args, SQLException e) voidsetConsoleLogSlowSqlThresholdMillis(int consoleLogSlowSqlThresholdMillis) voidsetLogSlowSqlThresholdMillis(int logSlowSqlThresholdMillis) voidsetLogSqlParametersInline(boolean logSqlParametersInline) voidsetUseJdbcTimestampFormat(boolean useJdbcTimestampFormat)
-
Field Details
-
MAX_FIELD_SIZE_TO_PRINT_TO_LOG
public static final int MAX_FIELD_SIZE_TO_PRINT_TO_LOG- See Also:
-
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
-
logSql
-
logSqlAfterException
public SQLException logSqlAfterException(org.slf4j.Logger loggerArg, String sql, Object[] args, SQLException e) -
buildDynamicSqlForLog
-
formatValue
-
formatUnknownType
-
formatStringValue
-
formatDateTimeValue
-
formatBinaryValue
-
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)
-