-
Method Summary
| Modifier and Type |
Method |
Description |
default CompletableFuture<T[]> |
toArrayAsync() |
|
default CompletableFuture<Void> |
toArrayAsync(Consumer<? super T[]> callback) |
|
default CompletableFuture<List<T>> |
toListAsync() |
|
default CompletableFuture<Void> |
toListAsync(Consumer<? super List<T>> callback) |
|
default <K> CompletableFuture<Map<K,T>> |
toMapAsync(Function<T,K> keyMapping) |
|
default <K> CompletableFuture<Void> |
toMapAsync(Function<T,K> keyMapping,
Consumer<? super Map<K,T>> callback) |
|
default <K,
V> CompletableFuture<Map<K,V>> |
toMapAsync(Function<T,K> keyMapping,
Function<T,V> valueMapping) |
|
default <K,
V> CompletableFuture<Void> |
toMapAsync(Function<T,K> keyMapping,
Function<T,V> valueMapping,
Consumer<? super Map<K,V>> callback) |
|
default CompletableFuture<Stream<T>> |
toStreamAsync() |
|
default CompletableFuture<Void> |
toStreamAsync(Consumer<? super Stream<T>> callback) |
|
-
Method Details
-
- Returns:
- The asynchronous operation which will retrieve the data from the database.
Custom handling for the
CompletableFuture can be done here.
- See Also:
Queryable.toList()
-
- Parameters:
callback - The action to be applied to the result once it is fetched from the database.
- Returns:
- The asynchronous operation which will retrieve the data from the database and apply the given action to the result.
- See Also:
Queryable.toList()
-
- Returns:
- The asynchronous operation which will retrieve the data from the database.
Custom handling for the
CompletableFuture can be done here.
- See Also:
Queryable.toStream()
-
- Parameters:
callback - The action to be applied to the result once it is fetched from the database.
- Returns:
- The asynchronous operation which will retrieve the data from the database and apply the given action to the result.
- See Also:
Queryable.toStream()
-
- Returns:
- The asynchronous operation which will retrieve the data from the database.
Custom handling for the
CompletableFuture can be done here.
- See Also:
Queryable.toArray()
-
- Parameters:
callback - The action to be applied to the result once it is fetched from the database.
- Returns:
- The asynchronous operation which will retrieve the data from the database and apply the given action to the result.
- See Also:
Queryable.toArray()
-
- Type Parameters:
K - The type of the keys in the map.
- Parameters:
keyMapping - The field representing the keys of the map.
- Returns:
- The asynchronous operation which will retrieve the data from the database.
Custom handling for the
CompletableFuture can be done here.
- See Also:
Queryable.toMap(Function)
-
- Type Parameters:
K - The type of the keys in the map.
- Parameters:
keyMapping - The field representing the keys of the map.
callback - The action to be applied to the result once it is fetched from the database.
- Returns:
- The asynchronous operation which will retrieve the data from the database and apply the given action to the result.
- See Also:
Queryable.toMap(Function)
-
- Type Parameters:
K - The type of the keys in the map.
V - The type of the values in the map.
- Parameters:
keyMapping - The field representing the keys of the map.
valueMapping - The field representing the values of the map.
- Returns:
- The asynchronous operation which will retrieve the data from the database.
Custom handling for the
CompletableFuture can be done here.
- See Also:
Queryable.toMap(Function, Function)
-
- Type Parameters:
K - The type of the keys in the map.
V - The type of the values in the map.
- Parameters:
keyMapping - The field representing the keys of the map.
valueMapping - The field representing the values of the map.
callback - The action to be applied to the result once it is fetched from the database.
- Returns:
- The asynchronous operation which will retrieve the data from the database and apply the given action to the result.