Interface ViolatedConstraintNameExtractor

  • All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ViolatedConstraintNameExtractor
    Defines a contract for implementations that can extract the name of a violated constraint from a SQLException that is the result of that constraint violation.
    • Method Detail

      • extractConstraintName

        String extractConstraintName​(SQLException sqle)
        Extract the name of the violated constraint from the given SQLException.
        sqle - The exception that was the result of the constraint violation.
        The extracted constraint name.