Dashboard Builder Commons 6.0.0.CR2

org.jboss.dashboard.database.hibernate
Class SQLStatementTrace

java.lang.Object
  extended by org.jboss.dashboard.profiler.CodeBlockTrace
      extended by org.jboss.dashboard.database.hibernate.SQLStatementTrace

public class SQLStatementTrace
extends CodeBlockTrace


Field Summary
protected  Map<String,Object> context
           
 
Fields inherited from class org.jboss.dashboard.profiler.CodeBlockTrace
ancestorTypes, beginTimeMillis, children, childrenElapsedTimeMillis, dateFormat, endTimeMillis, id, parent
 
Constructor Summary
SQLStatementTrace(String sql)
           
 
Method Summary
 Map<String,Object> getContext()
           
 String getDescription()
           
 CodeBlockType getType()
           
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)
 
Methods inherited from class org.jboss.dashboard.profiler.CodeBlockTrace
addChild, begin, 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

context

protected Map<String,Object> context
Constructor Detail

SQLStatementTrace

public SQLStatementTrace(String sql)
Method Detail

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.

Dashboard Builder Commons 6.0.0.CR2

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.