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
| 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 |
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 - messageex - root cause from the underlying API, such as JDBC.
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.