Skip to content

Commit

Permalink
add some information about throws exeptions when asking for generated…
Browse files Browse the repository at this point in the history
… keys where no were supposed to be returned
  • Loading branch information
Snabeldier committed Jan 2, 2025
1 parent f7520c4 commit cdec3f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public interface StatementBuilder extends AutoCloseable {
* <b>Note:</b> This method should be used for queries that do not return a result set.
*
* @return the generated key
* @throws IllegalStateException if this method is called on a closed {@code StatementBuilder}
* @throws IllegalStateException if this method is called on a closed {@code StatementBuilder} or this statement builder is not supposed to retrieve generated keys
* @throws SQLException if a database access error occurs
*/
@Contract(pure = true)
Expand All @@ -362,7 +362,7 @@ public interface StatementBuilder extends AutoCloseable {
* <b>Note:</b> This method should be used for queries that do not return a result set.
*
* @return a {@link CompletableFuture} that will be completed once the query has been executed and the key has been retrieved
* @throws IllegalStateException if this method is called on a closed {@code StatementBuilder}
* @throws IllegalStateException if this method is called on a closed {@code StatementBuilder} or this statement builder is not supposed to retrieve generated keys
*/
@Nonnull
@Contract(pure = true)
Expand Down

0 comments on commit cdec3f2

Please sign in to comment.