Class TooManyRowsAffectedException

  • All Implemented Interfaces:
    Direct Known Subclasses:

    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

      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()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TooManyRowsAffectedException

        public TooManyRowsAffectedException​(java.lang.String message,
                                            int expectedRowCount,
                                            int actualRowCount)
    • Method Detail

      • getExpectedRowCount

        public int getExpectedRowCount()
      • getActualRowCount

        public int getActualRowCount()