站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

CustomSQLErrorCodesTranslation (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.jdbc.support
Class CustomSQLErrorCodesTranslation

java.lang.Object
  extended by org.springframework.jdbc.support.CustomSQLErrorCodesTranslation

public class CustomSQLErrorCodesTranslation
extends Object

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.

Normally loaded through a BeanFactory implementation. Used by the SQLErrorCodeSQLExceptionTranslator.

Since:
1.1
Author:
Thomas Risberg
See Also:
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

CustomSQLErrorCodesTranslation

public CustomSQLErrorCodesTranslation()
Method Detail

setErrorCodes

public void setErrorCodes(String[] errorCodes)
Set the SQL error codes to match.


getErrorCodes

public String[] getErrorCodes()
Return the SQL error codes to match.


setExceptionClass

public void setExceptionClass(Class exceptionClass)
Set the exception class for the specified error codes.


getExceptionClass

public Class getExceptionClass()
Return the exception class for the specified error codes.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.