public interface Batch extends Serializable
create.batch(query1,
query2,
query3)
.execute();
create.batch(query)
.bind(valueA1, valueA2)
.bind(valueB1, valueB2)
.execute();
Statement#executeBatch()
Modifier and Type | Method and Description |
---|---|
@NotNull int[] |
execute()
Execute the batch operation.
|
@NotNull CompletionStage<int[]> |
executeAsync()
Execute the batch operation in a new
CompletionStage . |
@NotNull CompletionStage<int[]> |
executeAsync(Executor executor)
Execute the query in a new
CompletionStage that is asynchronously
completed by a task running in the given executor. |
int |
size()
Get the number of executed queries in this batch operation
|
@NotNull @NotNull int[] execute() throws DataAccessException
DataAccessException
- if something went wrong executing the queryStatement#executeBatch()
@NotNull @NotNull CompletionStage<int[]> executeAsync()
CompletionStage
.
The result is asynchronously completed by a task running in an
Executor
provided by the underlying
Configuration.executorProvider()
.
Statement#executeBatch()
@NotNull @NotNull CompletionStage<int[]> executeAsync(Executor executor)
CompletionStage
that is asynchronously
completed by a task running in the given executor.int size()
Copyright © 2020. All rights reserved.