| java.lang.Object org.springframework.jdbc.support.SQLErrorCodesFactory
SQLErrorCodesFactory | public class SQLErrorCodesFactory (Code) | | Factory for creating
SQLErrorCodes based on the
"databaseProductName" taken from the
java.sql.DatabaseMetaData .
Returns SQLErrorCodes populated with vendor codes
defined in a configuration file named "sql-error-codes.xml".
Reads the default file in this package if not overridden by a file in
the root of the class path (for example in the "/WEB-INF/classes" directory).
author: Thomas Risberg author: Rod Johnson author: Juergen Hoeller See Also: java.sql.DatabaseMetaData.getDatabaseProductName |
SQL_ERROR_CODE_DEFAULT_PATH | final public static String SQL_ERROR_CODE_DEFAULT_PATH(Code) | | The name of default SQL error code files, loading from the class path.
|
SQL_ERROR_CODE_OVERRIDE_PATH | final public static String SQL_ERROR_CODE_OVERRIDE_PATH(Code) | | The name of custom SQL error codes file, loading from the root
of the class path (e.g. from the "/WEB-INF/classes" directory).
|
getErrorCodes | public SQLErrorCodes getErrorCodes(String dbName)(Code) | | Return the
SQLErrorCodes instance for the given database.
No need for a database metadata lookup.
Parameters: dbName - the database name (must not be null ) the SQLErrorCodes instance for the given database throws: IllegalArgumentException - if the supplied database name is null |
|
|