Class SimpleR2dbcRepository<T,ID>

java.lang.Object
org.springframework.data.r2dbc.repository.support.SimpleR2dbcRepository<T,ID>
All Implemented Interfaces:
R2dbcRepository<T,ID>, org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>, org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>, org.springframework.data.repository.reactive.ReactiveSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>

@Transactional(readOnly=true) public class SimpleR2dbcRepository<T,ID> extends Object implements R2dbcRepository<T,ID>
Simple ReactiveSortingRepository implementation using R2DBC through DatabaseClient.
Author:
Mark Paluch, Jens Schauder, Mingyuan Wu, Stephen Cohen, Greg Turnquist
  • Constructor Details

  • Method Details

    • save

      @Transactional public <S extends T> reactor.core.publisher.Mono<S> save(S objectToSave)
      Specified by:
      save in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • saveAll

      @Transactional public <S extends T> reactor.core.publisher.Flux<S> saveAll(Iterable<S> objectsToSave)
      Specified by:
      saveAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • saveAll

      @Transactional public <S extends T> reactor.core.publisher.Flux<S> saveAll(org.reactivestreams.Publisher<S> objectsToSave)
      Specified by:
      saveAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findById

      public reactor.core.publisher.Mono<T> findById(ID id)
      Specified by:
      findById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findById

      public reactor.core.publisher.Mono<T> findById(org.reactivestreams.Publisher<ID> publisher)
      Specified by:
      findById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • existsById

      public reactor.core.publisher.Mono<Boolean> existsById(ID id)
      Specified by:
      existsById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • existsById

      public reactor.core.publisher.Mono<Boolean> existsById(org.reactivestreams.Publisher<ID> publisher)
      Specified by:
      existsById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findAll

      public reactor.core.publisher.Flux<T> findAll()
      Specified by:
      findAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findAllById

      public reactor.core.publisher.Flux<T> findAllById(Iterable<ID> iterable)
      Specified by:
      findAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findAllById

      public reactor.core.publisher.Flux<T> findAllById(org.reactivestreams.Publisher<ID> idPublisher)
      Specified by:
      findAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • count

      public reactor.core.publisher.Mono<Long> count()
      Specified by:
      count in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteById

      @Transactional public reactor.core.publisher.Mono<Void> deleteById(ID id)
      Specified by:
      deleteById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteById

      @Transactional public reactor.core.publisher.Mono<Void> deleteById(org.reactivestreams.Publisher<ID> idPublisher)
      Specified by:
      deleteById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • delete

      @Transactional public reactor.core.publisher.Mono<Void> delete(T objectToDelete)
      Specified by:
      delete in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteAllById

      public reactor.core.publisher.Mono<Void> deleteAllById(Iterable<? extends ID> ids)
      Specified by:
      deleteAllById in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteAll

      @Transactional public reactor.core.publisher.Mono<Void> deleteAll(Iterable<? extends T> iterable)
      Specified by:
      deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteAll

      @Transactional public reactor.core.publisher.Mono<Void> deleteAll(org.reactivestreams.Publisher<? extends T> objectPublisher)
      Specified by:
      deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • deleteAll

      @Transactional public reactor.core.publisher.Mono<Void> deleteAll()
      Specified by:
      deleteAll in interface org.springframework.data.repository.reactive.ReactiveCrudRepository<T,ID>
    • findAll

      public reactor.core.publisher.Flux<T> findAll(org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.repository.reactive.ReactiveSortingRepository<T,ID>
    • findOne

      public <S extends T> reactor.core.publisher.Mono<S> findOne(org.springframework.data.domain.Example<S> example)
      Specified by:
      findOne in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>
    • findAll

      public <S extends T> reactor.core.publisher.Flux<S> findAll(org.springframework.data.domain.Example<S> example)
      Specified by:
      findAll in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>
    • findAll

      public <S extends T> reactor.core.publisher.Flux<S> findAll(org.springframework.data.domain.Example<S> example, org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>
    • count

      public <S extends T> reactor.core.publisher.Mono<Long> count(org.springframework.data.domain.Example<S> example)
      Specified by:
      count in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>
    • exists

      public <S extends T> reactor.core.publisher.Mono<Boolean> exists(org.springframework.data.domain.Example<S> example)
      Specified by:
      exists in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>
    • findBy

      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)
      Specified by:
      findBy in interface org.springframework.data.repository.query.ReactiveQueryByExampleExecutor<T>