| Modifier and Type | Field and Description |
|---|---|
| private final int | actual
Number of rows that actually were affected. |
| private final int | expected
Number of rows that should have been affected. |
| Access | Constructor and Description |
|---|---|
| public | JdbcUpdateAffectedIncorrectNumberOfRowsException(String
the SQL we were trying to execute sql, int the expected number of rows affected expected, int the actual number of rows affected actual)Constructor for JdbcUpdateAffectedIncorrectNumberOfRowsException. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public boolean | wasDataUpdated()
Overrides org. |
| actual | back to summary |
|---|---|
| private final int actual Number of rows that actually were affected. | |
| expected | back to summary |
|---|---|
| private final int expected Number of rows that should have been affected. | |
| JdbcUpdateAffectedIncorrectNumberOfRowsException | back to summary |
|---|---|
| public JdbcUpdateAffectedIncorrectNumberOfRowsException(String sql, int expected, int actual) Constructor for JdbcUpdateAffectedIncorrectNumberOfRowsException.
| |
| getActualRowsAffected | back to summary |
|---|---|
| public int getActualRowsAffected() Return the number of rows that have actually been affected. | |
| getExpectedRowsAffected | back to summary |
|---|---|
| public int getExpectedRowsAffected() Return the number of rows that should have been affected. | |
| wasDataUpdated | back to summary |
|---|---|
| public boolean wasDataUpdated() Overrides org. Doc from org. Return whether data was updated. If this method returns false, there's nothing to roll back. The default implementation always returns true. This can be overridden in subclasses.
| |