站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

ViolatedConstraintNameExtracter (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


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

Method Detail

extractConstraintName

public 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.