@NoRepositoryBean public interface ReactiveMongoRepository<T,ID> extends ReactiveSortingRepository<T,ID>, ReactiveQueryByExampleExecutor<T>
Repository interface with reactive support.| Modifier and Type | Method and Description |
|---|---|
<S extends T> |
findAll(Example<S> example)
Returns all entities matching the given
Example. |
<S extends T> |
findAll(Example<S> example,
Sort sort)
|
<S extends T> |
insert(Iterable<S> entities)
Inserts the given entities.
|
<S extends T> |
insert(org.reactivestreams.Publisher<S> entities)
Inserts the given entities.
|
<S extends T> |
insert(S entity)
Inserts the given entity.
|
findAllcount, delete, deleteAll, deleteAll, deleteAll, deleteAllById, deleteById, deleteById, existsById, existsById, findAll, findAllById, findAllById, findById, findById, save, saveAll, saveAllcount, exists, findBy, findOne<S extends T> reactor.core.publisher.Mono<S> insert(S entity)
ReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.entity - must not be null.<S extends T> reactor.core.publisher.Flux<S> insert(Iterable<S> entities)
ReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.entities - must not be null.<S extends T> reactor.core.publisher.Flux<S> insert(org.reactivestreams.Publisher<S> entities)
ReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.entities - must not be null.<S extends T> reactor.core.publisher.Flux<S> findAll(Example<S> example)
Example. In case no match could be found an empty Flux is
returned. Example uses typed matching restricting it to probe assignable types. For example, when
sticking with the default type key (_class), the query has restrictions such as
_class : { $in : [com.acme.Person] }. UntypedExampleMatcher with
Example.of(Object, org.springframework.data.domain.ExampleMatcher).findAll in interface ReactiveQueryByExampleExecutor<T>ReactiveQueryByExampleExecutor.findAll(org.springframework.data.domain.Example)<S extends T> reactor.core.publisher.Flux<S> findAll(Example<S> example, Sort sort)
Example applying the given Sort. In case no match could be
found an empty Flux is returned. Example uses typed matching restricting it to probe assignable types. For example, when
sticking with the default type key (_class), the query has restrictions such as
_class : { $in : [com.acme.Person] }. UntypedExampleMatcher with
Example.of(Object, org.springframework.data.domain.ExampleMatcher).findAll in interface ReactiveQueryByExampleExecutor<T>ReactiveQueryByExampleExecutor.findAll(org.springframework.data.domain.Example,
org.springframework.data.domain.Sort)Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.