Package org.hibernate.engine.jdbc.spi
Class SqlExceptionHelper.WarningHandlerLoggingSupport
java.lang.Object
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
- All Implemented Interfaces:
SqlExceptionHelper.WarningHandler
- Direct Known Subclasses:
SqlExceptionHelper.StandardWarningHandler
- Enclosing class:
SqlExceptionHelper
public abstract static class SqlExceptionHelper.WarningHandlerLoggingSupport
extends Object
implements SqlExceptionHelper.WarningHandler
Basic support for
SqlExceptionHelper.WarningHandler implementations which handle warnings-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleWarning(SQLWarning warning) Handle an individual warning in the stack.protected abstract voidlogWarning(String description, String message) Delegate to log common details of a warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandler
doProcess, prepare
-
Constructor Details
-
WarningHandlerLoggingSupport
public WarningHandlerLoggingSupport()
-
-
Method Details
-
handleWarning
Description copied from interface:SqlExceptionHelper.WarningHandlerHandle an individual warning in the stack.- Specified by:
handleWarningin interfaceSqlExceptionHelper.WarningHandler- Parameters:
warning- The warning to handle.
-
logWarning
Delegate to log common details of a warning- Parameters:
description- A description of the warningmessage- The warning message
-