org.jboss.dashboard.database.hibernate
Class SQLStatementTrace
java.lang.Object
org.jboss.dashboard.profiler.CodeBlockTrace
org.jboss.dashboard.database.hibernate.SQLStatementTrace
public class SQLStatementTrace
- extends CodeBlockTrace
| Methods inherited from class org.jboss.dashboard.profiler.CodeBlockTrace |
addChild, addRuntimeConstraint, begin, checkRuntimeConstraints, end, equals, getAncestorTypes, getBeginTimeMillis, getChildren, getChildrenElapsedTimeMillis, getDescendants, getElapsedTimeMillis, getEndTimeMillis, getId, getLevel, getParent, getSelfTimeMillis, getThreadProfile, hashCode, isDescendantOfType, isRunning, printContext, printContext, printContext, printIndent, printMap, printMap, removeChild, setAncestorTypes, setBeginTimeMillis, setChildren, setEndTimeMillis, setId, setParent, setThreadProfile, toPlainList, toString |
context
protected Map<String,Object> context
SQLStatementTrace
public SQLStatementTrace(String sql)
getType
public CodeBlockType getType()
- Specified by:
getType in class CodeBlockTrace
getDescription
public String getDescription()
- Specified by:
getDescription in class CodeBlockTrace
getContext
public Map<String,Object> getContext()
- Specified by:
getContext in class CodeBlockTrace
stripAfterWhere
public static String stripAfterWhere(String sql)
- To group sensibly and to avoid recording sensitive data, Don't record the where clause
(only used for dynamic SQL since parameters aren't included in prepared statements)
- Returns:
- subset of passed SQL up to the where clause.
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.