Class TransactionLifecycleAwareSqlStatementLogger
java.lang.Object
org.hibernate.engine.jdbc.spi.SqlStatementLogger
org.broadleafcommerce.common.persistence.transaction.TransactionLifecycleAwareSqlStatementLogger
- All Implemented Interfaces:
Serializable,org.hibernate.service.Service
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionLifecycleAwareSqlStatementLogger(boolean logToStdout, boolean format) -
Method Summary
Modifier and TypeMethodDescriptionvoidlogStatement(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
-
Constructor Details
-
TransactionLifecycleAwareSqlStatementLogger
public TransactionLifecycleAwareSqlStatementLogger() -
TransactionLifecycleAwareSqlStatementLogger
public TransactionLifecycleAwareSqlStatementLogger(boolean logToStdout, boolean format)
-
-
Method Details
-
logStatement
- Overrides:
logStatementin classorg.hibernate.engine.jdbc.spi.SqlStatementLogger
-