| org.springframework.dao.IncorrectUpdateSemanticsDataAccessException org.springframework.jdbc.JdbcUpdateAffectedIncorrectNumberOfRowsException
JdbcUpdateAffectedIncorrectNumberOfRowsException | public class JdbcUpdateAffectedIncorrectNumberOfRowsException extends IncorrectUpdateSemanticsDataAccessException (Code) | | Exception thrown when a JDBC update affects an unexpected number of rows.
Typically we expect an update to affect a single row, meaning it's an
error if it affects multiple rows.
author: Rod Johnson author: Juergen Hoeller |
JdbcUpdateAffectedIncorrectNumberOfRowsException | public JdbcUpdateAffectedIncorrectNumberOfRowsException(String sql, int expected, int actual)(Code) | | Constructor for JdbcUpdateAffectedIncorrectNumberOfRowsException.
Parameters: sql - SQL we were tring to execute Parameters: expected - the expected number of rows affected Parameters: actual - the actual number of rows affected |
getActualRowsAffected | public int getActualRowsAffected()(Code) | | Return the number of rows that have actually been affected.
|
getExpectedRowsAffected | public int getExpectedRowsAffected()(Code) | | Return the number of rows that should have been affected.
|
wasDataUpdated | public boolean wasDataUpdated()(Code) | | |
Methods inherited from org.springframework.dao.IncorrectUpdateSemanticsDataAccessException | public boolean wasDataUpdated()(Code)(Java Doc)
|
|
|