Package org.hibernate.engine.jdbc.spi
Interface SqlExceptionHelper.WarningHandler
-
- All Known Implementing Classes:
SqlExceptionHelper.StandardWarningHandler,SqlExceptionHelper.WarningHandlerLoggingSupport
- Enclosing class:
- SqlExceptionHelper
public static interface SqlExceptionHelper.WarningHandlerContract for handlingwarnings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoProcess()Should processing be done? Allows short-circuiting if not.voidhandleWarning(java.sql.SQLWarning warning)Handle an individual warning in the stack.voidprepare(java.sql.SQLWarning warning)Prepare for processing of awarningstack.
-
-
-
Method Detail
-
doProcess
boolean doProcess()
Should processing be done? Allows short-circuiting if not.- Returns:
- True to process warnings, false otherwise.
-
prepare
void prepare(java.sql.SQLWarning warning)
Prepare for processing of awarningstack. Note that the warning here is also the first passed tohandleWarning(java.sql.SQLWarning)- Parameters:
warning- The first warning in the stack.
-
handleWarning
void handleWarning(java.sql.SQLWarning warning)
Handle an individual warning in the stack.- Parameters:
warning- The warning to handle.
-
-