public class SqlTransientExceptionDetector extends Object implements TransientExceptionDetector
| Constructor and Description |
|---|
SqlTransientExceptionDetector() |
SqlTransientExceptionDetector(boolean treatDuplicatesAsTransient) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSqlStateConnectionException(SQLException se)
Determines if the SQL exception is a connection exception
|
static boolean |
isSqlStateDuplicateValueInUniqueIndex(SQLException se)
Determines if the SQL exception a duplicate value in unique index.
|
static boolean |
isSqlStateRollbackException(SQLException se)
Determines if the SQL exception is a rollback exception
|
boolean |
isTransient(Exception e)
Determine if the condition is a transient error.
|
public SqlTransientExceptionDetector()
public SqlTransientExceptionDetector(boolean treatDuplicatesAsTransient)
public boolean isTransient(Exception e)
TransientExceptionDetectorisTransient in interface TransientExceptionDetectore - the exception to inspectpublic static boolean isSqlStateDuplicateValueInUniqueIndex(SQLException se)
se - the exceptionpublic static boolean isSqlStateConnectionException(SQLException se)
se - the exceptionpublic static boolean isSqlStateRollbackException(SQLException se)
se - the exceptionCopyright © 2015. All rights reserved.