Class TransactionLifecycleAwareSqlStatementLogger
java.lang.Object
org.hibernate.engine.jdbc.spi.SqlStatementLogger
org.broadleafcommerce.common.persistence.transaction.TransactionLifecycleAwareSqlStatementLogger
public class TransactionLifecycleAwareSqlStatementLogger
extends org.hibernate.engine.jdbc.spi.SqlStatementLogger
Custom
SqlStatementLogger
that will log sql statements during a transaction with TransactionLifecycleMonitor
.- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionLifecycleAwareSqlStatementLogger
(boolean logToStdout, boolean format) -
Method Summary
Modifier and TypeMethodDescriptionvoid
logStatement
(String statement, org.hibernate.engine.jdbc.internal.Formatter formatter) Methods inherited from class org.hibernate.engine.jdbc.spi.SqlStatementLogger
getLogSlowQuery, isFormat, isLogToStdout, logSlowQuery, logSlowQuery, logStatement, setFormat, setLogToStdout
-
Constructor Details
-
TransactionLifecycleAwareSqlStatementLogger
public TransactionLifecycleAwareSqlStatementLogger() -
TransactionLifecycleAwareSqlStatementLogger
public TransactionLifecycleAwareSqlStatementLogger(boolean logToStdout, boolean format)
-
-
Method Details
-
logStatement
- Overrides:
logStatement
in classorg.hibernate.engine.jdbc.spi.SqlStatementLogger
-