org.hibernate.exception
Interface ViolatedConstraintNameExtracter

All Known Implementing Classes:
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.

Author:
Steve Ebersole

Method Summary
 java.lang.String extractConstraintName(java.sql.SQLException sqle)
          Extract the name of the violated constraint from the given SQLException.
 

Method Detail

extractConstraintName

java.lang.String extractConstraintName(java.sql.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.


Copyright © 2008 Hibernate.org. All Rights Reserved.