Package de.chojo.sqlutil.wrapper.stage
Interface UpdateStage
- All Known Subinterfaces:
InsertStage
- All Known Implementing Classes:
QueryBuilder
public interface UpdateStage
Represents a UpdateStage of a
QueryBuilder.
A UpdateStage is used to execute an update and get the changed rows.
-
Method Summary
Modifier and TypeMethodDescriptionexecute()Deprecated.Deprecated.Deprecated in favor ofsend(Executor)intDeprecated.Deprecated in favor ofsendSync()send()Executes the update async.Executes the update async.sendSync()Executes the update.
-
Method Details
-
sendSync
UpdateResult sendSync()Executes the update.- Returns:
- A
CompletableFuturewhich returns the number of changed rows.
-
send
CompletableFuture<UpdateResult> send()Executes the update async.- Returns:
- A
CompletableFuturewhich returns the number of changed rows.
-
send
Executes the update async.- Parameters:
executor- executor used for async call- Returns:
- A
CompletableFuturewhich returns the number of changed rows.
-
execute
Deprecated.Deprecated in favor ofsend()Execute the update async.- Returns:
- A
CompletableFuturewhich returns the number of changed rows. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
execute
Deprecated.Deprecated in favor ofsend(Executor)Execute the update async.- Parameters:
executor- executor used for async call- Returns:
- A
CompletableFuturewhich returns the number of changed rows. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
executeSync
Deprecated.Deprecated in favor ofsendSync()Execute the update synced.- Returns:
- Number of changed rows
- Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
send()