Package de.chojo.sqlutil.wrapper.stage
Interface InsertStage
- All Superinterfaces:
UpdateStage
- All Known Implementing Classes:
QueryBuilder
-
Method Summary
Modifier and TypeMethodDescriptionkey()Retrieve the first created key asyncRetrieve the first created key asynckeys()Retrieve all created keys async as a listRetrieve all created keys async as a listkeysSync()Retrieve all created keys as a listkeySync()Retrieve the first created key syncedMethods inherited from interface de.chojo.sqlutil.wrapper.stage.UpdateStage
execute, execute, executeSync, send, send, sendSync
-
Method Details
-
key
CompletableFuture<Optional<Long>> key()Retrieve the first created key async- Returns:
- A
CompletableFutureto retrieve the data. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
key
Retrieve the first created key async- Parameters:
executor- the executor used for async call- Returns:
- A
CompletableFutureto retrieve the data. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
keySync
Retrieve the first created key synced- Returns:
- result wrapped into an optional
- Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
keysSync
Retrieve all created keys as a list- Returns:
- A list of created key.
- Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
keys
CompletableFuture<List<Long>> keys()Retrieve all created keys async as a list- Returns:
- A
CompletableFutureto retrieve the data. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-
keys
Retrieve all created keys async as a list- Parameters:
executor- the executor used for async call- Returns:
- A
CompletableFutureto retrieve the data. - Throws:
WrappedQueryExecutionException- ifQueryBuilderConfig.isThrowing()is set totrueand a exceptions occurs during query building or execution
-