📄 toomanyrowsaffectedexception.java
字号:
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;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -