Interface JdbcOptimisticLockingExceptionMapper

  • All Known Implementing Classes:
    DefaultJdbcOptimisticLockingExceptionMapper

    public interface JdbcOptimisticLockingExceptionMapper
    Mapper allowing different JDBC vendors to be mapped with vendor specific error codes to an OptimisticLockingAggregationRepository.OptimisticLockingException}.
    • Method Detail

      • isOptimisticLocking

        boolean isOptimisticLocking​(Exception cause)
        Checks the caused exception whether its to be considered as an OptimisticLockingAggregationRepository.OptimisticLockingException.
        Parameters:
        cause - the caused exception
        Returns:
        true if the caused should be rethrown as an OptimisticLockingAggregationRepository.OptimisticLockingException.