From 41c079305ee3259b461a237bc8cea3997d8a5f65 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 31 May 2023 20:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java index 685ecdb..9a70644 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java @@ -167,7 +167,7 @@ public class SimpleJdbcTemplate { } } - public void tx(final Tx tx) throws Exception { + public void tx(final IAtom tx) throws Exception { Assert.notNull(tx, "Tx can not be null."); try { this.conn.setAutoCommit(false); @@ -182,7 +182,7 @@ public class SimpleJdbcTemplate { } @FunctionalInterface - public static interface Tx { + public static interface IAtom { @SuppressWarnings("all") void execute() throws Exception; }