All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.querydsl.core.ReactiveFetchable Maven / Gradle / Ivy

The newest version!
package com.querydsl.core;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * {@code ReactiveFetchable} defines default projection methods for {@link Query} implementations.
 * All Querydsl query implementations should implement this interface.
 *
 * @param  result type
 */
public interface ReactiveFetchable {

  /**
   * Get the projection as a typed Flux.
   *
   * @return result
   */
  Flux fetch();

  /**
   * Get the first result of the projection.
   *
   * @return first result
   */
  Mono fetchFirst();

  /**
   * Get the projection as a unique result.
   *
   * @return first result
   */
  Mono fetchOne();

  /**
   * Get the count of matched elements
   *
   * @return row count
   */
  Mono fetchCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy