Class SimpleReactiveCouchbaseRepository<T,ID>
java.lang.Object
org.springframework.data.couchbase.repository.support.CouchbaseRepositoryBase<T,ID>
org.springframework.data.couchbase.repository.support.SimpleReactiveCouchbaseRepository<T,ID>
- All Implemented Interfaces:
ReactiveCouchbaseRepository<T,,ID> ReactiveCrudRepository<T,,ID> ReactiveSortingRepository<T,,ID> Repository<T,ID>
public class SimpleReactiveCouchbaseRepository<T,ID>
extends CouchbaseRepositoryBase<T,ID>
implements ReactiveCouchbaseRepository<T,ID>
Reactive repository base implementation for Couchbase.
- Since:
- 3.0
- Author:
- Subhashni Balakrishnan, Mark Paluch, Christoph Strobl, David Kelly, Douglas Six, Jens Schauder, Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleReactiveCouchbaseRepository(CouchbaseEntityInformation<T, String> entityInformation, ReactiveCouchbaseOperations operations, Class<?> repositoryInterface) Create a new Repository. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Long>count()reactor.core.publisher.Mono<Void>reactor.core.publisher.Mono<Void>reactor.core.publisher.Mono<Void>reactor.core.publisher.Mono<Void>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) 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()reactor.core.publisher.Flux<T>reactor.core.publisher.Flux<T>findAllById(Iterable<ID> ids) reactor.core.publisher.Flux<T>findAllById(org.reactivestreams.Publisher<ID> entityStream) reactor.core.publisher.Mono<T>reactor.core.publisher.Mono<T>protected ReactiveCouchbaseTemplate<S extends T>
reactor.core.publisher.Mono<S>save(S entity) <S extends T>
reactor.core.publisher.Flux<S><S extends T>
reactor.core.publisher.Flux<S>saveAll(org.reactivestreams.Publisher<S> entityStream) Methods inherited from class org.springframework.data.couchbase.repository.support.CouchbaseRepositoryBase
getCollection, getEntityInformation, getRepositoryInterface, getScopeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.couchbase.repository.ReactiveCouchbaseRepository
getEntityInformation
-
Constructor Details
-
SimpleReactiveCouchbaseRepository
public SimpleReactiveCouchbaseRepository(CouchbaseEntityInformation<T, String> entityInformation, ReactiveCouchbaseOperations operations, Class<?> repositoryInterface) Create a new Repository.- Parameters:
entityInformation- the Metadata for the entity.operations- the reference to the reactive template used.
-
-
Method Details
-
findAll
- Specified by:
findAllin interfaceReactiveSortingRepository<T,ID>
-
save
- Specified by:
savein interfaceReactiveCrudRepository<T,ID>
-
saveAll
- Specified by:
saveAllin interfaceReactiveCrudRepository<T,ID>
-
saveAll
public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream) - Specified by:
saveAllin interfaceReactiveCrudRepository<T,ID>
-
findById
- Specified by:
findByIdin interfaceReactiveCrudRepository<T,ID>
-
findById
- Specified by:
findByIdin interfaceReactiveCrudRepository<T,ID>
-
findAllById
- Specified by:
findAllByIdin interfaceReactiveCrudRepository<T,ID>
-
findAllById
- Specified by:
findAllByIdin interfaceReactiveCrudRepository<T,ID>
-
existsById
- Specified by:
existsByIdin interfaceReactiveCrudRepository<T,ID>
-
existsById
- Specified by:
existsByIdin interfaceReactiveCrudRepository<T,ID>
-
findAll
- Specified by:
findAllin interfaceReactiveCrudRepository<T,ID>
-
deleteById
- Specified by:
deleteByIdin interfaceReactiveCrudRepository<T,ID>
-
deleteById
- Specified by:
deleteByIdin interfaceReactiveCrudRepository<T,ID>
-
delete
- Specified by:
deletein interfaceReactiveCrudRepository<T,ID>
-
deleteAllById
- Specified by:
deleteAllByIdin interfaceReactiveCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceReactiveCrudRepository<T,ID>
-
deleteAll
public reactor.core.publisher.Mono<Void> deleteAll(org.reactivestreams.Publisher<? extends T> entityStream) - Specified by:
deleteAllin interfaceReactiveCrudRepository<T,ID>
-
deleteAll
- Specified by:
deleteAllin interfaceReactiveCrudRepository<T,ID>
-
count
- Specified by:
countin interfaceReactiveCrudRepository<T,ID>
-
getOperations
- Specified by:
getOperationsin interfaceReactiveCouchbaseRepository<T,ID>
-
getReactiveTemplate
- Specified by:
getReactiveTemplatein classCouchbaseRepositoryBase<T,ID>
-