public static interface ExecutableFindByQueryOperation.TerminatingFindByQuery<T> extends OneAndAll<T>
| Modifier and Type | Method and Description |
|---|---|
List<T> |
all()
Get all matching documents.
|
long |
count()
Get the number of matching elements.
|
boolean |
exists()
Check for the presence of matching elements.
|
default Optional<T> |
first()
Get the first or no result.
|
T |
firstValue()
Get the first or no result.
|
default Optional<T> |
one()
Get exactly zero or one result.
|
T |
oneValue()
Get exactly zero or one result.
|
Stream<T> |
stream()
Stream all matching elements.
|
default Optional<T> one()
one in interface OneAndAll<T>Optional.empty() if no match found.IncorrectResultSizeDataAccessException - if more than one match found.@Nullable T oneValue()
oneValue in interface OneAndAll<T>IncorrectResultSizeDataAccessException - if more than one match found.default Optional<T> first()
first in interface OneAndAll<T>Optional.empty() if no match found.@Nullable T firstValue()
firstValue in interface OneAndAll<T>long count()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.