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<?> parameterValues)
          Formats the given SQL string with the given parameter values.
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<?> parameterValues)
Formats the given SQL string with the given parameter values.

Parameters:
sqlString - the raw SQL with no parameters substituted in (required)
parameterValues - the parameter values to substitute in; if this list is not null, each element's toString() will be substituted into the given SQL
Returns:
the SQL string with parameters in place of any JDBC '?' placeholders

logTheCallStack

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

Returns:
the call stack


Copyright © 2002-2014 Atlassian. All Rights Reserved.