Top Description Methods
org.hibernate.exception

public Interface ViolatedConstraintNameExtracter

Known Direct Implementers
org.hibernate.dialect.resolver.BasicSQLExceptionConverter.ConstraintNameExtracter, org.hibernate.exception.TemplatedViolatedConstraintNameExtracter
Imports
java.sql.SQLException

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.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The extracted constraint name.
extractConstraintName
(SQLException
The exception that was the result of the constraint violation.
sqle
)

Extract the name of the violated constraint from the given SQLException.

Method Detail

extractConstraintNameback to summary
public String extractConstraintName(SQLException sqle)

Extract the name of the violated constraint from the given SQLException.

Parameters
sqle:SQLException

The exception that was the result of the constraint violation.

Returns:String

The extracted constraint name.