|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.support.SQLErrorCodes
JavaBean for holding JDBC error codes for a particular database. Normally loaded through a BeanFactory implementation. Used by the SQLErrorCodeSQLExceptionTranslator.
SQLErrorCodeSQLExceptionTranslator
,
SQLErrorCodesFactory
Constructor Summary | |
SQLErrorCodes()
|
Method Summary | |
String[] |
getBadSqlGrammarCodes()
|
String[] |
getCannotAcquireLockCodes()
|
List |
getCustomTranslations()
|
String[] |
getDataAccessResourceFailureCodes()
|
String |
getDatabaseProductName()
|
String[] |
getDatabaseProductNames()
|
String[] |
getDataIntegrityViolationCodes()
|
String[] |
getDataRetrievalFailureCodes()
|
String[] |
getOptimisticLockingFailureCodes()
|
boolean |
isUseSqlStateForTranslation()
|
void |
setBadSqlGrammarCodes(String[] badSqlGrammarCodes)
|
void |
setCannotAcquireLockCodes(String[] cannotAcquireLockCodes)
|
void |
setCustomTranslations(List customTranslations)
|
void |
setDataAccessResourceFailureCodes(String[] dataAccessResourceFailureCodes)
|
void |
setDatabaseProductName(String databaseProductName)
Set this property if the database name contains spaces, in which case we can not use the bean name for lookup. |
void |
setDatabaseProductNames(String[] databaseProductNames)
Set this property to specify multiple database names that contains spaces, in which case we can not use bean names for lookup. |
void |
setDataIntegrityViolationCodes(String[] dataIntegrityViolationCodes)
|
void |
setDataRetrievalFailureCodes(String[] dataRetrievalFailureCodes)
|
void |
setOptimisticLockingFailureCodes(String[] optimisticLockingFailureCodes)
|
void |
setUseSqlStateForTranslation(boolean useStateCodeForTranslation)
Set this property to true for databases that do not provide an error code but that do provide SQL State (this includes PostgreSQL). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLErrorCodes()
Method Detail |
public void setDatabaseProductName(String databaseProductName)
public String getDatabaseProductName()
public void setDatabaseProductNames(String[] databaseProductNames)
public String[] getDatabaseProductNames()
public void setUseSqlStateForTranslation(boolean useStateCodeForTranslation)
public boolean isUseSqlStateForTranslation()
public void setBadSqlGrammarCodes(String[] badSqlGrammarCodes)
public String[] getBadSqlGrammarCodes()
public void setDataIntegrityViolationCodes(String[] dataIntegrityViolationCodes)
public String[] getDataIntegrityViolationCodes()
public void setDataRetrievalFailureCodes(String[] dataRetrievalFailureCodes)
public String[] getDataRetrievalFailureCodes()
public void setOptimisticLockingFailureCodes(String[] optimisticLockingFailureCodes)
public String[] getOptimisticLockingFailureCodes()
public void setCannotAcquireLockCodes(String[] cannotAcquireLockCodes)
public String[] getCannotAcquireLockCodes()
public void setDataAccessResourceFailureCodes(String[] dataAccessResourceFailureCodes)
public String[] getDataAccessResourceFailureCodes()
public void setCustomTranslations(List customTranslations)
customTranslations
- List of CustomSQLErrorCodesTranslation objectsCustomSQLErrorCodesTranslation
public List getCustomTranslations()
CustomSQLErrorCodesTranslation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |