Package org.jumpmind.db.sql
Class LogSqlBuilder
java.lang.Object
org.jumpmind.db.sql.LogSqlBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected BinaryEncoding
protected int
protected boolean
static final int
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDynamicSqlForLog
(String sql, Object[] args, int[] types) protected String
formatBinaryValue
(Object object) protected String
formatDateTimeValue
(Object object, int type) protected String
formatStringValue
(Object object) protected String
formatUnknownType
(Object object) formatValue
(Object object, int type) int
int
boolean
boolean
void
logSql
(org.slf4j.Logger loggerArg, String sql, Object[] args, int[] types, long executionTimeMillis) void
logSql
(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) void
setConsoleLogSlowSqlThresholdMillis
(int consoleLogSlowSqlThresholdMillis) void
setLogSlowSqlThresholdMillis
(int logSlowSqlThresholdMillis) void
setLogSqlParametersInline
(boolean logSqlParametersInline) void
setUseJdbcTimestampFormat
(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)
-