|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.support.CustomSQLErrorCodesTranslation
public class 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.
SQLErrorCodeSQLExceptionTranslator
Constructor Summary | |
---|---|
CustomSQLErrorCodesTranslation()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomSQLErrorCodesTranslation()
Method Detail |
---|
public void setErrorCodes(String[] errorCodes)
public String[] getErrorCodes()
public void setExceptionClass(Class exceptionClass)
public Class getExceptionClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |