public class JdbcSQLErrorCodesResolver extends Object implements PersistenceExceptionResolver
| Constructor and Description | 
|---|
JdbcSQLErrorCodesResolver()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isDuplicateKeyViolation(Exception exception)
Indicates whether the given  
exception represents a duplicate key violation. | 
public boolean isDuplicateKeyViolation(Exception exception)
PersistenceExceptionResolverexception represents a duplicate key violation. Typically, duplicate key
 violations indicates concurrent access to an entity in the application. Two users might be accessing the same
 Aggregate, for example.isDuplicateKeyViolation in interface PersistenceExceptionResolverexception - The exception to evaluatetrue if the given exception represents a Duplicate Key Violation, false
         otherwise.Copyright © 2010–2018. All rights reserved.