public static class SqlExceptionHelper.StandardWarningHandler extends SqlExceptionHelper.WarningHandlerLoggingSupport
Constructor and Description |
---|
SqlExceptionHelper.StandardWarningHandler(String introMessage) |
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 SqlExceptionHelper.StandardWarningHandler(String introMessage)
public 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 © 2012 JBoss by Red Hat. All Rights Reserved.