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 java.lang.Object implements SqlExceptionHelper.WarningHandler
Basic support forSqlExceptionHelper.WarningHandler
implementations which handlewarnings
-
-
Constructor Summary
Constructors Constructor Description WarningHandlerLoggingSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
handleWarning(java.sql.SQLWarning warning)
Handle an individual warning in the stack.protected abstract void
logWarning(java.lang.String description, java.lang.String message)
Delegate to log common details of awarning
-
Methods 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
-
-
-
-
Method Detail
-
handleWarning
public final void handleWarning(java.sql.SQLWarning warning)
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
protected abstract void logWarning(java.lang.String description, java.lang.String message)
Delegate to log common details of awarning
- Parameters:
description
- A description of the warningmessage
- The warning message
-
-