Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » jdbc » support » [javadoc | source]
org.springframework.jdbc.support
public class: SQLStateSQLExceptionTranslator [javadoc | source]
java.lang.Object
   org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator
      org.springframework.jdbc.support.SQLStateSQLExceptionTranslator

All Implemented Interfaces:
    SQLExceptionTranslator

SQLExceptionTranslator implementation that analyzes the SQL state in the SQLException based on the first two digits (the SQL state "class"). Detects standard SQL state values and well-known vendor-specific SQL states.

Not able to diagnose all problems, but is portable between databases and does not require special initialization (no database vendor detection, etc.). For more precise translation, consider SQLErrorCodeSQLExceptionTranslator .

Fields inherited from org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator:
logger
Method from org.springframework.jdbc.support.SQLStateSQLExceptionTranslator Summary:
doTranslate
Methods from org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator:
buildMessage,   doTranslate,   getFallbackTranslator,   setFallbackTranslator,   translate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jdbc.support.SQLStateSQLExceptionTranslator Detail:
 protected DataAccessException doTranslate(String task,
    String sql,
    SQLException ex)