public class SQLErrorCodes extends Object
Used by Spring's SQLErrorCodeSQLExceptionTranslator
.
The file "sql-error-codes.xml" in this package contains default
SQLErrorCodes
instances for various databases.
SQLErrorCodesFactory
,
SQLErrorCodeSQLExceptionTranslator
Constructor and Description |
---|
SQLErrorCodes() |
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 setInvalidResultSetAccessCodes(String... invalidResultSetAccessCodes)
public String[] getInvalidResultSetAccessCodes()
public String[] getDuplicateKeyCodes()
public void setDuplicateKeyCodes(String... duplicateKeyCodes)
public void setDataIntegrityViolationCodes(String... dataIntegrityViolationCodes)
public String[] getDataIntegrityViolationCodes()
public void setPermissionDeniedCodes(String... permissionDeniedCodes)
public String[] getPermissionDeniedCodes()
public void setDataAccessResourceFailureCodes(String... dataAccessResourceFailureCodes)
public String[] getDataAccessResourceFailureCodes()
public void setTransientDataAccessResourceCodes(String... transientDataAccessResourceCodes)
public String[] getTransientDataAccessResourceCodes()
public void setCannotAcquireLockCodes(String... cannotAcquireLockCodes)
public String[] getCannotAcquireLockCodes()
public void setDeadlockLoserCodes(String... deadlockLoserCodes)
public String[] getDeadlockLoserCodes()
public void setCannotSerializeTransactionCodes(String... cannotSerializeTransactionCodes)
public String[] getCannotSerializeTransactionCodes()
public void setCustomTranslations(CustomSQLErrorCodesTranslation... customTranslations)
public CustomSQLErrorCodesTranslation[] getCustomTranslations()
public void setCustomSqlExceptionTranslatorClass(Class<? extends SQLExceptionTranslator> customTranslatorClass)
public void setCustomSqlExceptionTranslator(SQLExceptionTranslator customSqlExceptionTranslator)
public SQLExceptionTranslator getCustomSqlExceptionTranslator()