public class

OfBizLogHelper

extends Object
java.lang.Object
   ↳ com.atlassian.jira.ofbiz.OfBizLogHelper

Class Overview

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

Summary

Public Constructors
OfBizLogHelper()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfBizLogHelper ()

Public Methods

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

public static String logTheCallStack ()

Returns a string with the call stack excluding filters and generic ofbiz statements.

Returns
  • the call stack