Package org.hibernate.jdbc
Class TooManyRowsAffectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.jdbc.TooManyRowsAffectedException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TooManyRowsAffectedException(java.lang.String message, int expectedRowCount, int actualRowCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActualRowCount()
int
getExpectedRowCount()
-