org.hibernate.jdbc.TooManyRowsAffectedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.jdbc;
import org.hibernate.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
*/
public class TooManyRowsAffectedException extends HibernateException {
private final int expectedRowCount;
private final int actualRowCount;
public TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount) {
super( message );
this.expectedRowCount = expectedRowCount;
this.actualRowCount = actualRowCount;
}
public int getExpectedRowCount() {
return expectedRowCount;
}
public int getActualRowCount() {
return actualRowCount;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy