进一步完善 JdbcEntityDaoSupport 和 AssertResult 的 API,使构建 Repository 的实现更容易。

This commit is contained in:
2023-02-09 00:35:17 +08:00
parent d01db60309
commit cec72ba7f9
6 changed files with 61 additions and 29 deletions

View File

@@ -41,6 +41,14 @@ public final class AssertResult {
}
}
public static void updateOneRow(int i) {
update(i, 1);
}
public static void updateOneRow(Object i, String format) {
update(i, 1, format);
}
public static void exist(boolean expression) {
if (!expression) {
throw new DataNotExistException();