public class SQLStateResolver extends Object implements PersistenceExceptionResolver
|Constructor and Description|
Constructor that uses the standard SQL state category for the check.
Constructor that can be used to supply a specific SQL state code for the check.
|Modifier and Type||Method and Description|
Indicates whether the given
public SQLStateResolver(String checkState)
checkState- The state string that is used in the check.
public boolean isDuplicateKeyViolation(Exception exception)
exceptionrepresents 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.
Copyright © 2010–2021. All rights reserved.