Package org.hibernate.jdbc
Class TooManyRowsAffectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.jdbc.TooManyRowsAffectedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BatchedTooManyRowsAffectedException
Indicates that more rows were affected than we were expecting to be.
Typically indicates presence of duplicate "PK" values in the
given table.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTooManyRowsAffectedException
(String message, int expectedRowCount, int actualRowCount) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyRowsAffectedException
-
-
Method Details
-
getExpectedRowCount
public int getExpectedRowCount() -
getActualRowCount
public int getActualRowCount()
-