org.hibernate.exception
Interface 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.
String | extractConstraintName(SQLException sqle) - Extract the name of the violated constraint from the given SQLException.
|
extractConstraintName
public 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.