Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » exception » [javadoc | source]
org.hibernate.exception
public class: SQLExceptionConverterFactory [javadoc | source]
java.lang.Object
   org.hibernate.exception.SQLExceptionConverterFactory
A factory for building SQLExceptionConverter instances.
Method from org.hibernate.exception.SQLExceptionConverterFactory Summary:
buildMinimalSQLExceptionConverter,   buildSQLExceptionConverter
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.exception.SQLExceptionConverterFactory Detail:
 public static SQLExceptionConverter buildMinimalSQLExceptionConverter() 
    Builds a minimal converter. The instance returned here just always converts to GenericJDBCException .
 public static SQLExceptionConverter buildSQLExceptionConverter(Dialect dialect,
    Properties properties) throws HibernateException 
    Build a SQLExceptionConverter instance.

    First, looks for a Environment#SQL_EXCEPTION_CONVERTER property to see if the configuration specified the class of a specific converter to use. If this property is set, attempt to construct an instance of that class. If not set, or if construction fails, the converter specific to the dialect will be used.