FileDocCategorySizeDatePackage
TooManyRowsAffectedException.javaAPI DocHibernate 3.2.5769Fri Aug 04 12:40:56 BST 2006org.hibernate.jdbc

TooManyRowsAffectedException

public class TooManyRowsAffectedException extends 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

Fields Summary
private final int
expectedRowCount
private final int
actualRowCount
Constructors Summary
public TooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount)

		super( message );
		this.expectedRowCount = expectedRowCount;
		this.actualRowCount = actualRowCount;
	
Methods Summary
public intgetActualRowCount()

		return actualRowCount;
	
public intgetExpectedRowCount()

		return expectedRowCount;