Skip to content

Commit

Permalink
add close() method to specify exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 4, 2025
1 parent 7e01426 commit 8d92d2d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 8d92d2d

Please sign in to comment.