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