Top Description Methods
org.hibernate.exception.spi

public Interface ViolatedConstraintNameExtractor

Known Direct Implementers
org.hibernate.exception.spi.TemplatedViolatedConstraintNameExtractor
Annotations
@FunctionalInterface
Imports
java.sql.SQLException, org.checkerframework.checker.nullness.qual.Nullable

An object that can extract the name of a violated database constraint from a SQLException that results from the constraint violation.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public @Nullable 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 @Nullable 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:@Nullable String

The extracted constraint name.