Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » exception » [javadoc | source]
org.hibernate.exception
public interface: SQLExceptionConverter [javadoc | source]

All Known Implementing Classes:
    SQLStateConverter, ErrorCodeConverter, CacheSQLStateConverter

Defines a contract for implementations that know how to convert a SQLException into Hibernate's JDBCException hierarchy. Inspired by Spring's SQLExceptionTranslator.

Implementations must have a constructor which takes a ViolatedConstraintNameExtracter parameter.

Implementations may implement Configurable if they need to perform configuration steps prior to first use.

Method from org.hibernate.exception.SQLExceptionConverter Summary:
convert
Method from org.hibernate.exception.SQLExceptionConverter Detail:
 public JDBCException convert(SQLException sqlException,
    String message,
    String sql)
    Convert the given SQLException into Hibernate's JDBCException hierarchy.