public static class SqlExceptionHelper.StandardWarningHandler extends SqlExceptionHelper.WarningHandlerLoggingSupport
Constructor and Description |
---|
StandardWarningHandler(String introMessage)
Creates a StandardWarningHandler
|
Modifier and Type | Method and Description |
---|---|
boolean |
doProcess()
Should processing be done? Allows short-circuiting if not.
|
protected void |
logWarning(String description,
String message)
Delegate to log common details of a
warning |
void |
prepare(SQLWarning warning)
Prepare for processing of a
warning stack. |
handleWarning
public StandardWarningHandler(String introMessage)
introMessage
- The introduction message for the hierarchypublic boolean doProcess()
SqlExceptionHelper.WarningHandler
public void prepare(SQLWarning warning)
SqlExceptionHelper.WarningHandler
warning
stack.
Note that the warning here is also the first passed to SqlExceptionHelper.WarningHandler.handleWarning(java.sql.SQLWarning)
warning
- The first warning in the stack.protected void logWarning(String description, String message)
SqlExceptionHelper.WarningHandlerLoggingSupport
warning
logWarning
in class SqlExceptionHelper.WarningHandlerLoggingSupport
description
- A description of the warningmessage
- The warning messageCopyright © 2017 JBoss by Red Hat. All rights reserved.