@Transactional(readOnly=true) public class SimpleR2dbcRepository<T,ID> extends Object implements R2dbcRepository<T,ID>
ReactiveSortingRepository
implementation using R2DBC through DatabaseClient
.Constructor and Description |
---|
SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity,
DatabaseClient databaseClient,
R2dbcConverter converter,
ReactiveDataAccessStrategy accessStrategy)
Create a new
SimpleR2dbcRepository . |
SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity,
DatabaseClient databaseClient,
R2dbcConverter converter,
ReactiveDataAccessStrategy accessStrategy)
Deprecated.
since 1.2.
|
SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity,
R2dbcEntityOperations entityOperations,
R2dbcConverter converter)
Create a new
SimpleR2dbcRepository . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
count() |
<S extends T> |
count(Example<S> example) |
reactor.core.publisher.Mono<Void> |
delete(T objectToDelete) |
reactor.core.publisher.Mono<Void> |
deleteAll() |
reactor.core.publisher.Mono<Void> |
deleteAll(Iterable<? extends T> iterable) |
reactor.core.publisher.Mono<Void> |
deleteAll(org.reactivestreams.Publisher<? extends T> objectPublisher) |
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> idPublisher) |
<S extends T> |
exists(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(Example<S> example) |
<S extends T> |
findAll(Example<S> example,
Sort sort) |
reactor.core.publisher.Flux<T> |
findAll(Sort sort) |
reactor.core.publisher.Flux<T> |
findAllById(Iterable<ID> iterable) |
reactor.core.publisher.Flux<T> |
findAllById(org.reactivestreams.Publisher<ID> idPublisher) |
<S extends T,R,P extends org.reactivestreams.Publisher<R>> |
findBy(Example<S> example,
Function<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(Example<S> example) |
<S extends T> |
save(S objectToSave) |
<S extends T> |
saveAll(Iterable<S> objectsToSave) |
<S extends T> |
saveAll(org.reactivestreams.Publisher<S> objectsToSave) |
public SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity, R2dbcEntityOperations entityOperations, R2dbcConverter converter)
SimpleR2dbcRepository
.entity
- entityOperations
- converter
- public SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity, DatabaseClient databaseClient, R2dbcConverter converter, ReactiveDataAccessStrategy accessStrategy)
SimpleR2dbcRepository
.entity
- databaseClient
- converter
- accessStrategy
- @Deprecated public SimpleR2dbcRepository(org.springframework.data.relational.repository.query.RelationalEntityInformation<T,ID> entity, DatabaseClient databaseClient, R2dbcConverter converter, ReactiveDataAccessStrategy accessStrategy)
SimpleR2dbcRepository
.entity
- databaseClient
- converter
- accessStrategy
- @Transactional public <S extends T> reactor.core.publisher.Mono<S> save(S objectToSave)
save
in interface ReactiveCrudRepository<T,ID>
@Transactional public <S extends T> reactor.core.publisher.Flux<S> saveAll(Iterable<S> objectsToSave)
saveAll
in interface ReactiveCrudRepository<T,ID>
@Transactional public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> objectsToSave)
saveAll
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<T> findById(ID id)
findById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<T> findById(org.reactivestreams.Publisher<ID> publisher)
findById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<Boolean> existsById(ID id)
existsById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<Boolean> existsById(org.reactivestreams.Publisher<ID> publisher)
existsById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Flux<T> findAll()
findAll
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Flux<T> findAllById(Iterable<ID> iterable)
findAllById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Flux<T> findAllById(org.reactivestreams.Publisher<ID> idPublisher)
findAllById
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<Long> count()
count
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> deleteById(ID id)
deleteById
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> deleteById(org.reactivestreams.Publisher<ID> idPublisher)
deleteById
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> delete(T objectToDelete)
delete
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Mono<Void> deleteAllById(Iterable<? extends ID> ids)
deleteAllById
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> deleteAll(Iterable<? extends T> iterable)
deleteAll
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> deleteAll(org.reactivestreams.Publisher<? extends T> objectPublisher)
deleteAll
in interface ReactiveCrudRepository<T,ID>
@Transactional public reactor.core.publisher.Mono<Void> deleteAll()
deleteAll
in interface ReactiveCrudRepository<T,ID>
public reactor.core.publisher.Flux<T> findAll(Sort sort)
findAll
in interface ReactiveSortingRepository<T,ID>
public <S extends T> reactor.core.publisher.Mono<S> findOne(Example<S> example)
findOne
in interface ReactiveQueryByExampleExecutor<T>
public <S extends T> reactor.core.publisher.Flux<S> findAll(Example<S> example)
findAll
in interface ReactiveQueryByExampleExecutor<T>
public <S extends T> reactor.core.publisher.Flux<S> findAll(Example<S> example, Sort sort)
findAll
in interface ReactiveQueryByExampleExecutor<T>
public <S extends T> reactor.core.publisher.Mono<Long> count(Example<S> example)
count
in interface ReactiveQueryByExampleExecutor<T>
public <S extends T> reactor.core.publisher.Mono<Boolean> exists(Example<S> example)
exists
in interface ReactiveQueryByExampleExecutor<T>
public <S extends T,R,P extends org.reactivestreams.Publisher<R>> P findBy(Example<S> example, Function<FluentQuery.ReactiveFluentQuery<S>,P> queryFunction)
findBy
in interface ReactiveQueryByExampleExecutor<T>
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.