接口 ViolatedConstraintNameExtracter

  • 所有已知实现类:
    TemplatedViolatedConstraintNameExtracter

    public interface ViolatedConstraintNameExtracter
    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.
    作者:
    Steve Ebersole
    • 方法详细资料

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