public static interface ExecutableSelectOperation.TerminatingSelect<T>
SELECT query execution by calling one of the terminating methods.| Modifier and Type | Method and Description |
|---|---|
List<T> |
all()
Get all matching elements.
|
long |
count()
Get the number of matching elements.
|
default boolean |
exists()
Check for the presence of matching elements.
|
default Optional<T> |
first()
Get the first result, or no result.
|
T |
firstValue()
Get the first result, or no result.
|
default Optional<T> |
one()
Get exactly zero or one result.
|
T |
oneValue()
Get exactly zero or one result.
|
default Stream<T> |
stream()
Stream all matching elements.
|
long count()
default boolean exists()
count()default Optional<T> first()
Optional.empty() if no match found.firstValue()@Nullable T firstValue()
default Optional<T> one()
Optional.empty() if no match found.IncorrectResultSizeDataAccessException - if more than one match found.oneValue()@Nullable T oneValue()
IncorrectResultSizeDataAccessException - if more than one match found.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.