001package io.ebean;
002
003/**
004 * Defines a cancelable query.
005 * <p>
006 * Typically holds a representation of the PreparedStatement to perform the
007 * actual cancel.
008 * </p>
009 */
010public interface CancelableQuery {
011
012  /**
013   * Cancel the query.
014   * <p>
015   * For JDBC this translates to calling cancel on the PreparedStatement.
016   * </p>
017   */
018  void cancel();
019}