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

io.ebeanservice.docstore.api.DocQueryRequest Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeanservice.docstore.api;

import io.ebean.text.json.JsonReadOptions;
import io.ebeaninternal.api.SpiQuery;
import io.ebeaninternal.api.SpiTransaction;

/**
 * A Query request for the document store.
 */
public interface DocQueryRequest {

  /**
   * Return the transaction for this request (can be null for document store only queries).
   */
  SpiTransaction getTransaction();

  /**
   * Set the (document store) transaction to use for this query.
   */
  void setTransaction(SpiTransaction transaction);

  /**
   * Return the query for this request.
   */
  SpiQuery getQuery();

  /**
   * Create JsonReadOptions taking into account persistence context and lazy loading support.
   */
  JsonReadOptions createJsonReadOptions();

  /**
   * Execute secondary queries.
   */
  void executeSecondaryQueries(boolean forEach);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy