Package org.springframework.jdbc.support
Class CustomSQLErrorCodesTranslation
java.lang.Object
org.springframework.jdbc.support.CustomSQLErrorCodesTranslation
JavaBean for holding custom JDBC error codes translation for a particular
 database. The "exceptionClass" property defines which exception will be
 thrown for the list of error codes specified in the errorCodes property.
- Since:
- 1.1
- Author:
- Thomas Risberg
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Return the SQL error codes to match.Class<?>Return the exception class for the specified error codes.voidsetErrorCodes(String... errorCodes) Set the SQL error codes to match.voidsetExceptionClass(Class<?> exceptionClass) Set the exception class for the specified error codes.
- 
Constructor Details- 
CustomSQLErrorCodesTranslationpublic CustomSQLErrorCodesTranslation()
 
- 
- 
Method Details- 
setErrorCodesSet the SQL error codes to match.
- 
getErrorCodesReturn the SQL error codes to match.
- 
setExceptionClassSet the exception class for the specified error codes.
- 
getExceptionClassReturn the exception class for the specified error codes.
 
-