public interface

ViolatedConstraintNameExtracter

org.hibernate.exception.ViolatedConstraintNameExtracter
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract String extractConstraintName(SQLException sqle)
Extract the name of the violated constraint from the given SQLException.

Public Methods

public abstract String extractConstraintName (SQLException sqle)

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

Parameters
sqle The exception that was the result of the constraint violation.
Returns
  • The extracted constraint name.