T
- public interface QueryByExampleExecutor<T>
Example
instances.Modifier and Type | Method and Description |
---|---|
<S extends T> |
count(Example<S> example)
Returns the number of instances matching the given
Example . |
<S extends T> |
exists(Example<S> example)
Checks whether the data store contains elements that match the given
Example . |
<S extends T> |
findAll(Example<S> example)
Returns all entities matching the given
Example . |
<S extends T> |
findAll(Example<S> example,
Pageable pageable)
|
<S extends T> |
findAll(Example<S> example,
Sort sort)
|
<S extends T> |
findOne(Example<S> example)
Returns a single entity matching the given
Example or null if none was found. |
<S extends T> Optional<S> findOne(Example<S> example)
Example
or null if none was found.example
- must not be null.Example
or Optional.empty()
if none was found.IncorrectResultSizeDataAccessException
- if the Example yields more than one result.<S extends T> Iterable<S> findAll(Example<S> example)
Example
. In case no match could be found an empty Iterable
is returned.example
- must not be null.Example
.<S extends T> long count(Example<S> example)
Example
.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.