Package org.hibernate.util
Class JDBCExceptionReporter.StandardWarningHandler
java.lang.Object
org.hibernate.util.JDBCExceptionReporter.WarningHandlerLoggingSupport
org.hibernate.util.JDBCExceptionReporter.StandardWarningHandler
- All Implemented Interfaces:
JDBCExceptionReporter.WarningHandler
- Enclosing class:
JDBCExceptionReporter
public static class JDBCExceptionReporter.StandardWarningHandler
extends JDBCExceptionReporter.WarningHandlerLoggingSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould processing be done? Allows short-circuiting if not.protected voidlogWarning(String description, String message) Delegate to log common details of awarningvoidprepare(SQLWarning warning) Prepare for processing of awarningstack.Methods inherited from class org.hibernate.util.JDBCExceptionReporter.WarningHandlerLoggingSupport
handleWarning
-
Constructor Details
-
StandardWarningHandler
-
-
Method Details
-
doProcess
public boolean doProcess()Description copied from interface:JDBCExceptionReporter.WarningHandlerShould processing be done? Allows short-circuiting if not.- Returns:
- True to process warnings, false otherwise.
-
prepare
Description copied from interface:JDBCExceptionReporter.WarningHandlerPrepare for processing of awarningstack. Note that the warning here is also the first passed toJDBCExceptionReporter.WarningHandler.handleWarning(java.sql.SQLWarning)- Parameters:
warning- The first warning in the stack.
-
logWarning
Description copied from class:JDBCExceptionReporter.WarningHandlerLoggingSupportDelegate to log common details of awarning- Specified by:
logWarningin classJDBCExceptionReporter.WarningHandlerLoggingSupport- Parameters:
description- A description of the warningmessage- The warning message
-