public static interface

JDBCExceptionReporter.WarningHandler

org.hibernate.util.JDBCExceptionReporter.WarningHandler
Known Indirect Subclasses

Class Overview

Contract for handling SQLWarning warnings

Summary

Public Methods
abstract boolean doProcess()
Should processing be done? Allows short-circuiting if not.
abstract void handleWarning(SQLWarning warning)
Handle an individual warning in the stack.
abstract void prepare(SQLWarning warning)
Prepare for processing of a warning stack.

Public Methods

public abstract boolean doProcess ()

Should processing be done? Allows short-circuiting if not.

Returns
  • True to process warnings, false otherwise.

public abstract void handleWarning (SQLWarning warning)

Handle an individual warning in the stack.

Parameters
warning The warning to handle.

public abstract void prepare (SQLWarning warning)

Prepare for processing of a warning stack.

Note that the warning here is also the first passed to handleWarning(SQLWarning)

Parameters
warning The first warning in the stack.