org.springframework.jdbc.support
Class SQLErrorCodes

java.lang.Object
  extended byorg.springframework.jdbc.support.SQLErrorCodes

public class SQLErrorCodes
extends java.lang.Object

JavaBean for holding JDBC Error Codes for a particular database. Normally loaded through a BeanFactory implementation. Used by the SQLErrorCodeSQLExceptionTranslator.

Version:
$Id: SQLErrorCodes.java,v 1.4 2004/03/18 02:46:15 trisberg Exp $
Author:
Thomas Risberg

Constructor Summary
SQLErrorCodes()
           
 
Method Summary
 java.lang.String[] getBadSqlGrammarCodes()
          Returns the badSqlGrammarCodes.
 java.lang.String[] getDataAccessResourceFailureCodes()
           
 java.lang.String getDatabaseProductName()
           
 java.lang.String[] getDataIntegrityViolationCodes()
          Returns the dataIntegrityViolationCodes.
 java.lang.String[] getDataRetrievalFailureCodes()
           
 java.lang.String[] getOptimisticLockingFailureCodes()
           
 void setBadSqlGrammarCodes(java.lang.String[] badSqlGrammarCodes)
          Sets the badSqlGrammarCodes.
 void setDataAccessResourceFailureCodes(java.lang.String[] dataAccessResourceFailureCodes)
           
 void setDatabaseProductName(java.lang.String databaseProductName)
           
 void setDataIntegrityViolationCodes(java.lang.String[] dataIntegrityViolationCodes)
          Sets the dataIntegrityViolationCodes.
 void setDataRetrievalFailureCodes(java.lang.String[] dataRetrievalFailureCodes)
           
 void setOptimisticLockingFailureCodes(java.lang.String[] optimisticLockingFailureCodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLErrorCodes

public SQLErrorCodes()
Method Detail

setBadSqlGrammarCodes

public void setBadSqlGrammarCodes(java.lang.String[] badSqlGrammarCodes)
Sets the badSqlGrammarCodes.


getBadSqlGrammarCodes

public java.lang.String[] getBadSqlGrammarCodes()
Returns the badSqlGrammarCodes.


setDataIntegrityViolationCodes

public void setDataIntegrityViolationCodes(java.lang.String[] dataIntegrityViolationCodes)
Sets the dataIntegrityViolationCodes.


getDataIntegrityViolationCodes

public java.lang.String[] getDataIntegrityViolationCodes()
Returns the dataIntegrityViolationCodes.


getDataRetrievalFailureCodes

public java.lang.String[] getDataRetrievalFailureCodes()
Returns:
Returns the dataRetrievalFailureCodes.

setDataRetrievalFailureCodes

public void setDataRetrievalFailureCodes(java.lang.String[] dataRetrievalFailureCodes)
Parameters:
dataRetrievalFailureCodes - The dataRetrievalFailureCodes to set.

getDataAccessResourceFailureCodes

public java.lang.String[] getDataAccessResourceFailureCodes()
Returns:
Returns the dataAccessResourceFailureCodes.

setDataAccessResourceFailureCodes

public void setDataAccessResourceFailureCodes(java.lang.String[] dataAccessResourceFailureCodes)
Parameters:
dataAccessResourceFailureCodes - The dataAccessResourceFailureCodes to set.

getOptimisticLockingFailureCodes

public java.lang.String[] getOptimisticLockingFailureCodes()
Returns:
Returns the optimisticLockingFailureCodes.

setOptimisticLockingFailureCodes

public void setOptimisticLockingFailureCodes(java.lang.String[] optimisticLockingFailureCodes)
Parameters:
optimisticLockingFailureCodes - The optimisticLockingFailureCodes to set.

getDatabaseProductName

public java.lang.String getDatabaseProductName()
Returns:
Returns the databaseProductName.

setDatabaseProductName

public void setDatabaseProductName(java.lang.String databaseProductName)
Parameters:
databaseProductName - The databaseProductName to set.


Copyright (C) 2003-2004 The Spring Framework Project.