All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.jdbc.BatchedTooManyRowsAffectedException Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * 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;


/**
 * Much like {@link TooManyRowsAffectedException}, indicates that more
 * rows than what we were expecting were affected.  Additionally, this form
 * occurs from a batch and carries along the batch position that failed.
 *
 * @author Steve Ebersole
 */
public class BatchedTooManyRowsAffectedException extends TooManyRowsAffectedException {
	private final int batchPosition;

	public BatchedTooManyRowsAffectedException(String message, int expectedRowCount, int actualRowCount, int batchPosition) {
		super( message, expectedRowCount, actualRowCount );
		this.batchPosition = batchPosition;
	}

	public int getBatchPosition() {
		return batchPosition;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy