Uses of Interface
org.springframework.data.domain.Example
Package
Description
Central domain abstractions especially to be used in combination with the
Repository
abstraction.Support classes to work with query methods.
-
Uses of Example in org.springframework.data.domain
Modifier and TypeMethodDescriptionstatic <T> Example<T>
Example.of
(T probe) Create a newExample
including all non-null properties by default.static <T> Example<T>
Example.of
(T probe, ExampleMatcher matcher) Create a newExample
using the givenExampleMatcher
. -
Uses of Example in org.springframework.data.repository.query
Modifier and TypeMethodDescription<S extends T>
longReturns the number of instances matching the givenExample
.Returns the number of instances matching the givenExample
.<S extends T>
booleanChecks whether the data store contains elements that match the givenExample
.Checks whether the data store contains elements that match the givenExample
.Returns all entities matching the givenExample
.Returns all entities matching the givenExample
.<S extends T>
reactor.core.publisher.Flux<S>Returns all entities matching the givenExample
.<S extends T>
reactor.core.publisher.Flux<S><S extends T,
R>
RQueryByExampleExecutor.findBy
(Example<S> example, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) Returns entities matching the givenExample
applying thequeryFunction
that defines the query and its result type.<S extends T,
R, P extends org.reactivestreams.Publisher<R>>
PReactiveQueryByExampleExecutor.findBy
(Example<S> example, Function<FluentQuery.ReactiveFluentQuery<S>, P> queryFunction) Returns entities matching the givenExample
applying thequeryFunction
that defines the query and its result type.Returns a single entity matching the givenExample
orOptional.empty()
if none was found.<S extends T>
reactor.core.publisher.Mono<S>Returns a single entity matching the givenExample
orMono.empty()
if none was found.