Package 

Class ReactorJoiner

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final EntityManagerFactory emf
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactorJoiner(EntityManagerFactory emf)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final EntityManagerFactory getEmf()
      final <T extends Any, P extends Any> P transaction(Function1<JoinerComposer<?, ?, ?>, JoinerComposer<T, ?, P>> init) Execute multiple statements in a single DB transaction
      final <T extends Any> Mono<T> persist(T entity) Persist a single entity in transaction, returns Mono with a reference to persisted entity
      final <T extends Any> Flux<T> persist(Collection<T> entities) Persist multiple entities in a transaction, returns Flux with references to persisted entities
      final <T extends Any, R extends Any> Mono<R> findOne(JoinerQuery<T, R> query) Execute a select query and expect exactly one result, returned as a Mono
      final <T extends Any, R extends Any> Mono<R> findOneOptional(JoinerQuery<T, R> query) Execute a select query and expect at most one result, returned as a Mono
      final <T extends Any, R extends Any> Flux<R> find(JoinerQuery<T, R> query) Execute a select query, returns result set as a Flux
      final Mono<Boolean> remove(Object entity)
      • Methods inherited from class cz.encircled.joiner.reactive.ReactorJoiner

        executeComposed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactorJoiner

        ReactorJoiner(EntityManagerFactory emf)
    • Method Detail

      • getEmf

         final EntityManagerFactory getEmf()
      • persist

         final <T extends Any> Mono<T> persist(T entity)

        Persist a single entity in transaction, returns Mono with a reference to persisted entity

      • persist

         final <T extends Any> Flux<T> persist(Collection<T> entities)

        Persist multiple entities in a transaction, returns Flux with references to persisted entities

      • findOne

         final <T extends Any, R extends Any> Mono<R> findOne(JoinerQuery<T, R> query)

        Execute a select query and expect exactly one result, returned as a Mono

      • findOneOptional

         final <T extends Any, R extends Any> Mono<R> findOneOptional(JoinerQuery<T, R> query)

        Execute a select query and expect at most one result, returned as a Mono

      • find

         final <T extends Any, R extends Any> Flux<R> find(JoinerQuery<T, R> query)

        Execute a select query, returns result set as a Flux