Interface HibernateReactorRepositoryOperations

    • Method Detail

      • withSession

        @NonNull
        <T> reactor.core.publisher.Mono<T> withSession​(@NonNull
                                                       java.util.function.Function<org.hibernate.reactive.stage.Stage.Session,​reactor.core.publisher.Mono<T>> work)
        Execute with a new or existing session.
        Type Parameters:
        T - The published item
        Parameters:
        work - The work
        Returns:
        The produced result publisher
      • withSessionFlux

        @NonNull
        <T> reactor.core.publisher.Flux<T> withSessionFlux​(@NonNull
                                                           java.util.function.Function<org.hibernate.reactive.stage.Stage.Session,​reactor.core.publisher.Flux<T>> work)
        Execute with a new or existing session.
        Type Parameters:
        T - The published item
        Parameters:
        work - The work
        Returns:
        The produced result publisher
      • persistAndFlush

        @NonNull
        reactor.core.publisher.Mono<java.lang.Void> persistAndFlush​(@NonNull
                                                                    java.lang.Object entity)
        Persist and flush the entity.
        Parameters:
        entity - The entity
        Returns:
        The operation publisher
      • flush

        @NonNull
        reactor.core.publisher.Mono<java.lang.Void> flush()
        Flush the current session.
        Returns:
        The operation publisher
      • getCriteriaBuilder

        @NonNull
        javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
        Returns:
        CriteriaBuilder that can be used to work with criteria.