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
Constructors Constructor Description StandardWarningHandler(java.lang.String introMessage)Creates a StandardWarningHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoProcess()Should processing be done? Allows short-circuiting if not.protected voidlogWarning(java.lang.String description, java.lang.String message)Delegate to log common details of awarningvoidprepare(java.sql.SQLWarning warning)Prepare for processing of awarningstack.-
Methods inherited from class org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
handleWarning
-
-
-
-
Method Detail
-
doProcess
public boolean doProcess()
Description copied from interface:SqlExceptionHelper.WarningHandlerShould processing be done? Allows short-circuiting if not.- Returns:
- True to process warnings, false otherwise.
-
prepare
public void prepare(java.sql.SQLWarning warning)
Description copied from interface:SqlExceptionHelper.WarningHandlerPrepare for processing of awarningstack. Note that the warning here is also the first passed toSqlExceptionHelper.WarningHandler.handleWarning(java.sql.SQLWarning)- Parameters:
warning- The first warning in the stack.
-
logWarning
protected void logWarning(java.lang.String description, java.lang.String message)Description copied from class:SqlExceptionHelper.WarningHandlerLoggingSupportDelegate to log common details of awarning- Specified by:
logWarningin classSqlExceptionHelper.WarningHandlerLoggingSupport- Parameters:
description- A description of the warningmessage- The warning message
-
-