public class

CustomSQLErrorCodesTranslation

extends Object
java.lang.Object
   ↳ org.springframework.jdbc.support.CustomSQLErrorCodesTranslation

Class Overview

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.

Summary

Public Constructors
CustomSQLErrorCodesTranslation()
Public Methods
String[] getErrorCodes()
Return the SQL error codes to match.
Class getExceptionClass()
Return the exception class for the specified error codes.
void setErrorCodes(String[] errorCodes)
Set the SQL error codes to match.
void setExceptionClass(Class exceptionClass)
Set the exception class for the specified error codes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomSQLErrorCodesTranslation ()

Public Methods

public String[] getErrorCodes ()

Return the SQL error codes to match.

public Class getExceptionClass ()

Return the exception class for the specified error codes.

public void setErrorCodes (String[] errorCodes)

Set the SQL error codes to match.

public void setExceptionClass (Class exceptionClass)

Set the exception class for the specified error codes.