-
Method Summary
| Modifier and Type |
Method |
Description |
default java.util.concurrent.CompletableFuture<T[]> |
toArrayAsync() |
|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
toArrayAsync(java.util.function.Consumer<? super T[]> callback) |
|
default java.util.concurrent.CompletableFuture<java.util.List<T>> |
toListAsync() |
|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
toListAsync(java.util.function.Consumer<? super java.util.List<T>> callback) |
|
default <K> java.util.concurrent.CompletableFuture<java.util.Map<K,T>> |
toMapAsync(java.util.function.Function<T,K> keyMapping) |
|
default <K> java.util.concurrent.CompletableFuture<java.lang.Void> |
toMapAsync(java.util.function.Function<T,K> keyMapping,
java.util.function.Consumer<? super java.util.Map<K,T>> callback) |
|
default <K,
V> java.util.concurrent.CompletableFuture<java.util.Map<K,V>> |
toMapAsync(java.util.function.Function<T,K> keyMapping,
java.util.function.Function<T,V> valueMapping) |
|
default <K,
V> java.util.concurrent.CompletableFuture<java.lang.Void> |
toMapAsync(java.util.function.Function<T,K> keyMapping,
java.util.function.Function<T,V> valueMapping,
java.util.function.Consumer<? super java.util.Map<K,V>> callback) |
|
default java.util.concurrent.CompletableFuture<java.util.stream.Stream<T>> |
toStreamAsync() |
|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
toStreamAsync(java.util.function.Consumer<? super java.util.stream.Stream<T>> callback) |
|
-
Method Details
-
default java.util.concurrent.CompletableFuture<java.util.List<T>> toListAsync()
- 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()
-
default java.util.concurrent.CompletableFuture<java.lang.Void> toListAsync(
java.util.function.Consumer<? super java.util.List<T>> callback)
- 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()
-
default java.util.concurrent.CompletableFuture<java.util.stream.Stream<T>> toStreamAsync()
- 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()
-
default java.util.concurrent.CompletableFuture<java.lang.Void> toStreamAsync(
java.util.function.Consumer<? super java.util.stream.Stream<T>> callback)
- 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()
-
default java.util.concurrent.CompletableFuture<T[]> toArrayAsync()
- 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()
-
default java.util.concurrent.CompletableFuture<java.lang.Void> toArrayAsync(
java.util.function.Consumer<? super T[]> callback)
- 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()
-
default <K>
java.util.concurrent.CompletableFuture<java.util.Map<K,T>> toMapAsync(
java.util.function.Function<T,K> keyMapping)
- 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)
-
default <K>
java.util.concurrent.CompletableFuture<java.lang.Void> toMapAsync(
java.util.function.Function<T,K> keyMapping,
java.util.function.Consumer<? super java.util.Map<K,T>> callback)
- 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)
-
default <K,
V>
java.util.concurrent.CompletableFuture<java.util.Map<K,V>> toMapAsync(
java.util.function.Function<T,K> keyMapping,
java.util.function.Function<T,V> valueMapping)
- 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)
-
default <K,
V>
java.util.concurrent.CompletableFuture<java.lang.Void> toMapAsync(
java.util.function.Function<T,K> keyMapping,
java.util.function.Function<T,V> valueMapping,
java.util.function.Consumer<? super java.util.Map<K,V>> callback)
- 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.