- All Superinterfaces:
- Flow.Publisher<Integer>,- Publisher<Integer>,- org.reactivestreams.Publisher<Integer>,- Serializable
- All Known Subinterfaces:
- BatchBindStep
A wrapper for a JDBC batch operation. It has two modes:
 
- Execute several queries without bind valuescreate.batch(query1, query2, query3) .execute();
- Execute one query several times with bind valuescreate.batch(query) .bind(valueA1, valueA2) .bind(valueB1, valueB2) .execute();
- Author:
- Lukas Eder
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionint @NotNull []execute()Execute the batch operation.@NotNull CompletionStage<int[]> Execute the batch operation in a newCompletionStage.@NotNull CompletionStage<int[]> executeAsync(Executor executor) Execute the query in a newCompletionStagethat is asynchronously completed by a task running in the given executor.intsize()Get the number of executed queries in this batch operationMethods inherited from interface org.reactivestreams.Publishersubscribe
- 
Method Details- 
executeExecute the batch operation.- Throws:
- DataAccessException- if something went wrong executing the query
- See Also:
 
- 
executeAsyncExecute the batch operation in a newCompletionStage.The result is asynchronously completed by a task running in an Executorprovided by the underlyingConfiguration.executorProvider().- See Also:
 
- 
executeAsyncExecute the query in a newCompletionStagethat is asynchronously completed by a task running in the given executor.
- 
sizeint size()Get the number of executed queries in this batch operation
 
-