类 SqlExceptionHelper.StandardWarningHandler
- java.lang.Object
-
- org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
-
- org.hibernate.engine.jdbc.spi.SqlExceptionHelper.StandardWarningHandler
-
- 所有已实现的接口:
SqlExceptionHelper.WarningHandler
- 封闭类:
- SqlExceptionHelper
public static class SqlExceptionHelper.StandardWarningHandler extends SqlExceptionHelper.WarningHandlerLoggingSupport
Standard SQLWarning handler for logging warnings
-
-
构造器概要
构造器 构造器 说明 StandardWarningHandler(String introMessage)Creates a StandardWarningHandler
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleandoProcess()Should processing be done?protected voidlogWarning(String description, String message)Delegate to log common details of awarningvoidprepare(SQLWarning warning)Prepare for processing of awarningstack.-
从类继承的方法 org.hibernate.engine.jdbc.spi.SqlExceptionHelper.WarningHandlerLoggingSupport
handleWarning
-
-
-
-
构造器详细资料
-
StandardWarningHandler
public StandardWarningHandler(String introMessage)
Creates a StandardWarningHandler- 参数:
introMessage- The introduction message for the hierarchy
-
-
方法详细资料
-
doProcess
public boolean doProcess()
从接口复制的说明:SqlExceptionHelper.WarningHandlerShould processing be done? Allows short-circuiting if not.- 返回:
- True to process warnings, false otherwise.
-
prepare
public void prepare(SQLWarning warning)
从接口复制的说明:SqlExceptionHelper.WarningHandlerPrepare for processing of awarningstack. Note that the warning here is also the first passed toSqlExceptionHelper.WarningHandler.handleWarning(java.sql.SQLWarning)- 参数:
warning- The first warning in the stack.
-
logWarning
protected void logWarning(String description, String message)
Delegate to log common details of awarning- 指定者:
logWarning在类中SqlExceptionHelper.WarningHandlerLoggingSupport- 参数:
description- A description of the warningmessage- The warning message
-
-