public class SimpleReactiveMongoRepository<T,ID extends Serializable> extends Object implements ReactiveMongoRepository<T,ID>
| Constructor and Description |
|---|
SimpleReactiveMongoRepository(MongoEntityInformation<T,ID> entityInformation,
ReactiveMongoOperations mongoOperations) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Long> |
count() |
<S extends T> |
count(org.springframework.data.domain.Example<S> example) |
reactor.core.publisher.Mono<Void> |
delete(T entity) |
reactor.core.publisher.Mono<Void> |
deleteAll() |
reactor.core.publisher.Mono<Void> |
deleteAll(Iterable<? extends T> entities) |
reactor.core.publisher.Mono<Void> |
deleteAll(org.reactivestreams.Publisher<? extends T> entityStream) |
reactor.core.publisher.Mono<Void> |
deleteAllById(Iterable<? extends ID> ids) |
reactor.core.publisher.Mono<Void> |
deleteById(ID id) |
reactor.core.publisher.Mono<Void> |
deleteById(org.reactivestreams.Publisher<ID> publisher) |
<S extends T> |
exists(org.springframework.data.domain.Example<S> example) |
reactor.core.publisher.Mono<Boolean> |
existsById(ID id) |
reactor.core.publisher.Mono<Boolean> |
existsById(org.reactivestreams.Publisher<ID> publisher) |
reactor.core.publisher.Flux<T> |
findAll() |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example)
Returns all entities matching the given
Example. |
<S extends T> |
findAll(org.springframework.data.domain.Example<S> example,
org.springframework.data.domain.Sort sort)
Returns all entities matching the given
Example applying the given Sort. |
reactor.core.publisher.Flux<T> |
findAll(org.springframework.data.domain.Sort sort) |
reactor.core.publisher.Flux<T> |
findAllById(Iterable<ID> ids) |
reactor.core.publisher.Flux<T> |
findAllById(org.reactivestreams.Publisher<ID> ids) |
<S extends T,R,P extends org.reactivestreams.Publisher<R>> |
findBy(org.springframework.data.domain.Example<S> example,
Function<org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery<S>,P> queryFunction) |
reactor.core.publisher.Mono<T> |
findById(ID id) |
reactor.core.publisher.Mono<T> |
findById(org.reactivestreams.Publisher<ID> publisher) |
<S extends T> |
findOne(org.springframework.data.domain.Example<S> example) |
<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.
|
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
<S extends T> |
saveAll(org.reactivestreams.Publisher<S> entityStream) |
public SimpleReactiveMongoRepository(MongoEntityInformation<T,ID> entityInformation, ReactiveMongoOperations mongoOperations)
public <S extends T> reactor.core.publisher.Mono<S> save(S entity)
save in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public <S extends T> reactor.core.publisher.Flux<S> saveAll(Iterable<S> entities)
saveAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream)
saveAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<T> findById(ID id)
findById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<T> findById(org.reactivestreams.Publisher<ID> publisher)
findById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Boolean> existsById(ID id)
existsById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Boolean> existsById(org.reactivestreams.Publisher<ID> publisher)
existsById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Flux<T> findAll()
findAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Flux<T> findAllById(Iterable<ID> ids)
findAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Flux<T> findAllById(org.reactivestreams.Publisher<ID> ids)
findAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Long> count()
count in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteById(ID id)
deleteById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteById(org.reactivestreams.Publisher<ID> publisher)
deleteById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> delete(T entity)
delete in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteAllById(Iterable<? extends ID> ids)
deleteAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteAll(Iterable<? extends T> entities)
deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteAll(org.reactivestreams.Publisher<? extends T> entityStream)
deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Mono<Void> deleteAll()
deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID extends Serializable>public reactor.core.publisher.Flux<T> findAll(org.springframework.data.domain.Sort sort)
findAll in interface org.springframework.data.repository.reactive.ReactiveSortingRepository<T,ID extends Serializable>public <S extends T> reactor.core.publisher.Mono<S> insert(S entity)
ReactiveMongoRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveMongoRepository<T,ID extends Serializable>entity - must not be null.public <S extends T> reactor.core.publisher.Flux<S> insert(Iterable<S> entities)
ReactiveMongoRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveMongoRepository<T,ID extends Serializable>entities - must not be null.public <S extends T> reactor.core.publisher.Flux<S> insert(org.reactivestreams.Publisher<S> entities)
ReactiveMongoRepositoryReactiveCrudRepository.save(Object) instead to avoid the usage of store-specific API.insert in interface ReactiveMongoRepository<T,ID extends Serializable>entities - must not be null.public <S extends T> reactor.core.publisher.Mono<S> findOne(org.springframework.data.domain.Example<S> example)
findOne in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>public <S extends T> reactor.core.publisher.Flux<S> findAll(org.springframework.data.domain.Example<S> example)
ReactiveMongoRepositoryExample. 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 ReactiveMongoRepository<T,ID extends Serializable>findAll in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>ReactiveQueryByExampleExecutor.findAll(org.springframework.data.domain.Example)public <S extends T> reactor.core.publisher.Flux<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort)
ReactiveMongoRepositoryExample 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 ReactiveMongoRepository<T,ID extends Serializable>findAll in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>ReactiveQueryByExampleExecutor.findAll(org.springframework.data.domain.Example,
org.springframework.data.domain.Sort)public <S extends T> reactor.core.publisher.Mono<Long> count(org.springframework.data.domain.Example<S> example)
count in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>public <S extends T> reactor.core.publisher.Mono<Boolean> exists(org.springframework.data.domain.Example<S> example)
exists in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>public <S extends T,R,P extends org.reactivestreams.Publisher<R>> P findBy(org.springframework.data.domain.Example<S> example, Function<org.springframework.data.repository.query.FluentQuery.ReactiveFluentQuery<S>,P> queryFunction)
findBy in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.