Package org.hibernate.engine.jdbc.spi
Class SqlExceptionHelper.StandardWarningHandler
java.lang.Object
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.StandardWarningHandler
- All Implemented Interfaces:
SqlExceptionHelper.WarningHandler
- Enclosing class:
- SqlExceptionHelper
public static class SqlExceptionHelper.StandardWarningHandler
extends SqlExceptionHelper.WarningHandlerLoggingSupport
Standard SQLWarning handler for logging warnings
-
Constructor Summary
ConstructorsConstructorDescriptionStandardWarningHandler
(String introMessage) Creates a StandardWarningHandler -
Method Summary
Modifier and TypeMethodDescriptionboolean
Should processing be done? Allows short-circuiting if not.protected void
logWarning
(String description, String message) Delegate to log common details of a warningvoid
prepare
(SQLWarning warning) Prepare for processing of a warning stack.Methods inherited from class org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
handleWarning
-
Constructor Details
-
StandardWarningHandler
Creates a StandardWarningHandler- Parameters:
introMessage
- The introduction message for the hierarchy
-
-
Method Details
-
doProcess
public boolean doProcess()Description copied from interface:SqlExceptionHelper.WarningHandler
Should processing be done? Allows short-circuiting if not.- Returns:
- True to process warnings, false otherwise.
-
prepare
Description copied from interface:SqlExceptionHelper.WarningHandler
Prepare for processing of a warning stack.Note that the warning here is also the first passed to
SqlExceptionHelper.WarningHandler.handleWarning(java.sql.SQLWarning)
- Parameters:
warning
- The first warning in the stack.
-
logWarning
Description copied from class:SqlExceptionHelper.WarningHandlerLoggingSupport
Delegate to log common details of a warning- Specified by:
logWarning
in classSqlExceptionHelper.WarningHandlerLoggingSupport
- Parameters:
description
- A description of the warningmessage
- The warning message
-