org.springframework.dao
Class IncorrectUpdateSemanticsDataAccessException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.springframework.core.NestedRuntimeException
|
+--org.springframework.dao.DataAccessException
|
+--org.springframework.dao.InvalidDataAccessResourceUsageException
|
+--org.springframework.dao.IncorrectUpdateSemanticsDataAccessException
- 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.
- Author:
- Rod Johnson
- Version: $Id: IncorrectUpdateSemanticsDataAccessException.java,v 1.3 2004/02/11 01:06:33 jhoeller Exp $
| Methods inherited from class java.lang.Throwable |
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause |
| Methods inherited from class java.lang.Object |
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals |
IncorrectUpdateSemanticsDataAccessException
public IncorrectUpdateSemanticsDataAccessException(String msg)
- Constructor for IncorrectUpdateSemanticsDataAccessException.
- Parameters:
- msg - message
IncorrectUpdateSemanticsDataAccessException
public IncorrectUpdateSemanticsDataAccessException(String msg, Throwable ex)
- Constructor for IncorrectUpdateSemanticsDataAccessException.
- Parameters:
- msg - message
- ex - 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.