public interface SelectAction<ENTITY> extends AsyncAware
| Modifier and Type | Method and Description |
|---|---|
default List<ENTITY> |
getList()
Execute the SELECT action
and return a list of entity instances
|
default CompletableFuture<List<ENTITY>> |
getListAsync()
Execute the SELECT action asynchronously
and return a
CompletableFuture of
a list of entity instances |
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> |
getListAsyncWithStats()
Execute the SELECT action asynchronously
and return a
CompletableFuture of
a list of entity instances with ExecutionInfo |
default info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo> |
getListWithStats() |
default ENTITY |
getOne()
Execute the SELECT action
and return the first entity instance
|
default CompletableFuture<ENTITY> |
getOneAsync()
Execute the SELECT action asynchronously
and return a
CompletableFuture of
the first entity instance |
default CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<ENTITY,ExecutionInfo>> |
getOneAsyncWithStats()
Execute the SELECT action asynchronously
and return a
CompletableFuture of
the first entity instance with ExecutionInfo |
default info.archinnov.achilles.type.tuples.Tuple2<ENTITY,ExecutionInfo> |
getOneWithStats()
Execute the SELECT action
and return the first entity instance with
ExecutionInfo |
Iterator<ENTITY> |
iterator()
Execute the SELECT action
and return an
Iterator<ENTITY> of entity instances
WARNING: this method performs a blocking call to the underlying async query |
info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> |
iteratorWithExecutionInfo()
Execute the SELECT action
and return a
Tuple2<Iterator<ENTITY>, ExecutionInfo>
WARNING: this method performs a blocking call to the underlying async query |
extractCauseFromExecutionExceptionIterator<ENTITY> iterator()
Iterator<ENTITY> of entity instances
info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> iteratorWithExecutionInfo()
Tuple2<Iterator<ENTITY>, ExecutionInfo>
default ENTITY getOne()
default info.archinnov.achilles.type.tuples.Tuple2<ENTITY,ExecutionInfo> getOneWithStats()
ExecutionInfodefault CompletableFuture<ENTITY> getOneAsync()
CompletableFuture of
the first entity instancedefault CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<ENTITY,ExecutionInfo>> getOneAsyncWithStats()
CompletableFuture of
the first entity instance with ExecutionInfodefault List<ENTITY> getList()
default CompletableFuture<List<ENTITY>> getListAsync()
CompletableFuture of
a list of entity instancesdefault info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo> getListWithStats()
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> getListAsyncWithStats()
CompletableFuture of
a list of entity instances with ExecutionInfoCopyright © 2012-2021. All Rights Reserved.