From 8d92d2d576be5b17336450351232f8e3cc2abe70 Mon Sep 17 00:00:00 2001 From: Snabeldier <79211348+Snabeldier@users.noreply.github.com> Date: Sat, 4 Jan 2025 03:32:20 +0100 Subject: [PATCH] add close() method to specify exception --- .../minevalley/core/api/database/StatementBuilder.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/minevalley/core/api/database/StatementBuilder.java b/src/main/java/minevalley/core/api/database/StatementBuilder.java index 1fff6f4f..cd455401 100644 --- a/src/main/java/minevalley/core/api/database/StatementBuilder.java +++ b/src/main/java/minevalley/core/api/database/StatementBuilder.java @@ -408,4 +408,12 @@ public interface StatementBuilder extends AutoCloseable { @Nonnull @Contract(pure = true) PreparedStatement unwrap() throws IllegalStateException; + + /** + * Closes the {@code StatementBuilder} and releases any resources it holds. + * + * @throws SQLException if a database access error occurs + */ + @Override + void close() throws SQLException; } \ No newline at end of file