org.hibernate.jdbc

Class TooManyRowsAffectedException

Implemented Interfaces:
Nestable
Known Direct Subclasses:
BatchedTooManyRowsAffectedException

public class TooManyRowsAffectedException
extends HibernateException

Indicates that more rows were affected then we were expecting to be. Typically indicates presence of duplicate "PK" values in the given table.
Author:
Steve Ebersole

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount)

Method Summary

int
getActualRowCount()
int
getExpectedRowCount()

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

TooManyRowsAffectedException

public TooManyRowsAffectedException(String message,
                                    int expectedRowCount,
                                    int actualRowCount)

Method Details

getActualRowCount

public int getActualRowCount()

getExpectedRowCount

public int getExpectedRowCount()