com.atlassian.jira.ofbiz
Class OfBizLogHelper

java.lang.Object
  extended by com.atlassian.jira.ofbiz.OfBizLogHelper

public class OfBizLogHelper
extends Object

Helper class to log the call stack of an Ofbiz SQL statement and format SQL statements.

Since:
v4.4

Constructor Summary
OfBizLogHelper()
           
 
Method Summary
static String formatSQL(String sqlString, List<String> parameterValues)
          Format the SQL string with the parameters provided
static String logTheCallStack()
          Returns a string with the call stack excluding filters and generic ofbiz statements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfBizLogHelper

public OfBizLogHelper()
Method Detail

formatSQL

public static String formatSQL(String sqlString,
                               List<String> parameterValues)
Format the SQL string with the parameters provided

Parameters:
sqlString - Raw sql string with no parameters substituded in
parameterValues - List of parameters to substitute in
Returns:
SQL string with parameters in place.

logTheCallStack

public static String logTheCallStack()
Returns a string with the call stack excluding filters and generic ofbiz statements.

Returns:
the call stack


Copyright © 2002-2013 Atlassian. All Rights Reserved.