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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks the caused exception whether its to be considered as an OptimisticLockingAggregationRepository.OptimisticLockingException.
  • Method Details

    • 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.