com.interface21.dao
Class IncorrectUpdateSemanticsDataAccessException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.dao.DataAccessException
                                |
                                +--com.interface21.dao.InvalidDataAccessResourceUsageException
                                      |
                                      +--com.interface21.dao.IncorrectUpdateSemanticsDataAccessException
All Implemented Interfaces:
HasRootCause, java.io.Serializable
Direct Known Subclasses:
JdbcUpdateAffectedIncorrectNumberOfRowsException

public abstract class IncorrectUpdateSemanticsDataAccessException
extends InvalidDataAccessResourceUsageException

Data access exception thrown when something unintended appears to have happened with an update, but the transaction hasn't already been rolled back. Thrown, for example, when we wanted to update 1 row in an RDBMS but actually updated 3

Version:
$Id: IncorrectUpdateSemanticsDataAccessException.java,v 1.1.1.1 2003/02/11 08:10:19 johnsonr Exp $
Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
IncorrectUpdateSemanticsDataAccessException(java.lang.String s)
          Constructor for IncorrectUpdateSemanticsDataAccessException.
IncorrectUpdateSemanticsDataAccessException(java.lang.String s, java.lang.Throwable ex)
          Constructor for IncorrectUpdateSemanticsDataAccessException.
 
Method Summary
abstract  boolean getDataWasUpdated()
          Return whether data was updated
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncorrectUpdateSemanticsDataAccessException

public IncorrectUpdateSemanticsDataAccessException(java.lang.String s)
Constructor for IncorrectUpdateSemanticsDataAccessException.
Parameters:
s - message

IncorrectUpdateSemanticsDataAccessException

public IncorrectUpdateSemanticsDataAccessException(java.lang.String s,
                                                   java.lang.Throwable ex)
Constructor for IncorrectUpdateSemanticsDataAccessException.
Parameters:
s - message
ex - root cause from the underlying API, such as JDBC.
Method Detail

getDataWasUpdated

public abstract boolean getDataWasUpdated()
Return whether data was updated
Returns:
whether data was updated (as opposed to being incorrectly updated). If this method returns true, there's nothing to roll back.


Rod Johnson and Spring contributors 2001-2003.