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

com.avaje.ebeaninternal.api.SpiSqlQuery Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebeaninternal.api;

import java.sql.PreparedStatement;

import com.avaje.ebean.SqlQuery;
import com.avaje.ebean.SqlQueryListener;

/**
 * SQL query - Internal extension to SqlQuery.
 */
public interface SpiSqlQuery extends SqlQuery {

  /**
   * Return the named or positioned parameters.
   */
  BindParams getBindParams();

  /**
   * return the query.
   */
  String getQuery();

  /**
   * Return the queryListener.
   */
  SqlQueryListener getListener();

  /**
   * Return the first row to fetch.
   */
  int getFirstRow();

  /**
   * Return the maximum number of rows to fetch.
   */
  int getMaxRows();

  /**
   * Return the number of rows after which background fetching occurs.
   */
  int getBackgroundFetchAfter();

  /**
   * Return the key property for maps.
   */
  String getMapKey();

  /**
   * Return the query timeout.
   */
  int getTimeout();

  /**
   * Return the hint for Statement.setFetchSize().
   */
  int getBufferFetchSizeHint();

  /**
   * Return true if this is a future fetch type query.
   */
  boolean isFutureFetch();

  /**
   * Set to true if this is a future fetch type query.
   */
  void setFutureFetch(boolean futureFetch);

  /**
   * Set the PreparedStatement for the purposes of supporting cancel.
   */
  void setPreparedStatement(PreparedStatement pstmt);

  /**
   * Return true if the query has been cancelled.
   */
  boolean isCancelled();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy