public class DefaultQueryLogEntryCreator extends Object implements QueryLogEntryCreator
| Modifier and Type | Field and Description |
|---|---|
protected static Map<Character,String> |
JSON_SPECIAL_CHARS |
| Constructor and Description |
|---|
DefaultQueryLogEntryCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
chompIfEndWith(StringBuilder sb,
char c) |
protected String |
escapeSpecialCharacterForJson(String input) |
String |
getLogEntry(ExecutionInfo execInfo,
List<QueryInfo> queryInfoList,
boolean writeDataSourceName) |
String |
getLogEntryAsJson(ExecutionInfo execInfo,
List<QueryInfo> queryInfoList,
boolean writeDataSourceName) |
protected String |
getStatementType(StatementType statementType) |
public String getLogEntry(ExecutionInfo execInfo, List<QueryInfo> queryInfoList, boolean writeDataSourceName)
getLogEntry in interface QueryLogEntryCreatorpublic String getLogEntryAsJson(ExecutionInfo execInfo, List<QueryInfo> queryInfoList, boolean writeDataSourceName)
getLogEntryAsJson in interface QueryLogEntryCreatorprotected String getStatementType(StatementType statementType)
protected void chompIfEndWith(StringBuilder sb, char c)
Copyright © 2015. All rights reserved.