Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » exception » [javadoc | source]
org.hibernate.exception
public class: SQLStateConverter [javadoc | source]
java.lang.Object
   org.hibernate.exception.SQLStateConverter

All Implemented Interfaces:
    SQLExceptionConverter

A SQLExceptionConverter implementation which performs converion based on the underlying SQLState. Interpretation of a SQL error based on SQLState is not nearly as accurate as using the ErrorCode (which is, however, vendor- specific). Use of a ErrorCode-based converter should be preferred approach for converting/interpreting SQLExceptions.
Constructor:
 public SQLStateConverter(ViolatedConstraintNameExtracter extracter) 
Method from org.hibernate.exception.SQLStateConverter Summary:
convert,   handledNonSpecificException
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.exception.SQLStateConverter Detail:
 public JDBCException convert(SQLException sqlException,
    String message,
    String sql) 
    Convert the given SQLException into Hibernate's JDBCException hierarchy.
 protected JDBCException handledNonSpecificException(SQLException sqlException,
    String message,
    String sql) 
    Handle an exception not converted to a specific type based on the SQLState.