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
ConstructorDescriptionSimpleReactiveCouchbaseRepository
(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, getScope
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
findAll
in interfaceReactiveSortingRepository<T,
ID>
-
save
- Specified by:
save
in interfaceReactiveCrudRepository<T,
ID>
-
saveAll
- Specified by:
saveAll
in interfaceReactiveCrudRepository<T,
ID>
-
saveAll
public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> entityStream) - Specified by:
saveAll
in interfaceReactiveCrudRepository<T,
ID>
-
findById
- Specified by:
findById
in interfaceReactiveCrudRepository<T,
ID>
-
findById
- Specified by:
findById
in interfaceReactiveCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceReactiveCrudRepository<T,
ID>
-
findAllById
- Specified by:
findAllById
in interfaceReactiveCrudRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceReactiveCrudRepository<T,
ID>
-
existsById
- Specified by:
existsById
in interfaceReactiveCrudRepository<T,
ID>
-
findAll
- Specified by:
findAll
in interfaceReactiveCrudRepository<T,
ID>
-
deleteById
- Specified by:
deleteById
in interfaceReactiveCrudRepository<T,
ID>
-
deleteById
- Specified by:
deleteById
in interfaceReactiveCrudRepository<T,
ID>
-
delete
- Specified by:
delete
in interfaceReactiveCrudRepository<T,
ID>
-
deleteAllById
- Specified by:
deleteAllById
in interfaceReactiveCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceReactiveCrudRepository<T,
ID>
-
deleteAll
public reactor.core.publisher.Mono<Void> deleteAll(org.reactivestreams.Publisher<? extends T> entityStream) - Specified by:
deleteAll
in interfaceReactiveCrudRepository<T,
ID>
-
deleteAll
- Specified by:
deleteAll
in interfaceReactiveCrudRepository<T,
ID>
-
count
- Specified by:
count
in interfaceReactiveCrudRepository<T,
ID>
-
getOperations
- Specified by:
getOperations
in interfaceReactiveCouchbaseRepository<T,
ID>
-
getReactiveTemplate
- Specified by:
getReactiveTemplate
in classCouchbaseRepositoryBase<T,
ID>
-