JavaBean for holding JDBC error codes for a particular database.
Instances of this class are normally loaded through a bean factory.
Used by Spring's SQLErrorCodeSQLExceptionTranslator.
The file "sql-error-codes.xml" in this package contains default
SQLErrorCodes instances for various databases.
author: Thomas Risberg author: Juergen Hoeller See Also:SQLErrorCodesFactory See Also:SQLErrorCodeSQLExceptionTranslator
setDatabaseProductName(String databaseProductName) Set this property if the database name contains spaces,
in which case we can not use the bean name for lookup.
public void
setDatabaseProductNames(String[] databaseProductNames) Set this property to specify multiple database names that contains spaces,
in which case we can not use bean names for lookup.
setUseSqlStateForTranslation(boolean useStateCodeForTranslation) Set this property to true for databases that do not provide an error code
but that do provide SQL State (this includes PostgreSQL).