Class H2QueryExceptionHandler
- java.lang.Object
-
- com.feedzai.commons.sql.abstraction.engine.handler.QueryExceptionHandler
-
- com.feedzai.commons.sql.abstraction.engine.impl.h2.H2QueryExceptionHandler
-
public class H2QueryExceptionHandler extends QueryExceptionHandler
A specific implementation ofQueryExceptionHandlerfor H2 engine.- Since:
- 2.5.1
- Author:
- José Fidalgo (jose.fidalgo@feedzai.com)
-
-
Constructor Summary
Constructors Constructor Description H2QueryExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRetryableException(SQLException exception)Checks if an Exception occurred due to serialization failures in concurrent transactions and may be retried on the client-side.-
Methods inherited from class com.feedzai.commons.sql.abstraction.engine.handler.QueryExceptionHandler
handleException, isTimeoutException
-
-
-
-
Method Detail
-
isRetryableException
public boolean isRetryableException(SQLException exception)
Description copied from class:QueryExceptionHandlerChecks if an Exception occurred due to serialization failures in concurrent transactions and may be retried on the client-side.- Overrides:
isRetryableExceptionin classQueryExceptionHandler- Parameters:
exception- The exception to check.- Returns:
trueif the exception is retryable,falseotherwise.
-
-