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 TypeMethodDescriptionfinal void
handleWarning
(SQLWarning warning) Handle an individual warning in the stack.protected abstract void
logWarning
(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, wait
Methods 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.WarningHandler
Handle an individual warning in the stack.- Specified by:
handleWarning
in 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
-