com.avaje.ebean.Query.cancel()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中com.avaje.ebean.Query.cancel方法的一些代码示例,展示了Query.cancel的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.cancel方法的具体详情如下:
包路径:com.avaje.ebean.Query
类名称:Query
方法名:cancel

Query.cancel介绍

[英]Cancel the query execution if supported by the underlying database and driver.

This must be called from a different thread to the query executor.
[中]如果基础数据库和驱动程序支持,请取消查询执行。
这必须从不同的线程调用到查询执行器。

代码示例

代码示例来源:origin: org.actframework/act-ebean-java7

@Override
public void cancel() {
  q.cancel();
  qReadOnly.cancel();
}

代码示例来源:origin: com.typesafe.play/play-java-ebean

/**
 * Cancels query execution, if supported by the underlying database and driver.
 */
public void cancel() {
  query().cancel();
}

代码示例来源:origin: org.avaje/ebean

public boolean cancel(boolean mayInterruptIfRunning) {
  query.cancel();
  return super.cancel(mayInterruptIfRunning);
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public boolean cancel(boolean mayInterruptIfRunning) {
  query.cancel();
  return super.cancel(mayInterruptIfRunning);
}

代码示例来源:origin: org.avaje/ebean

public boolean cancel(boolean mayInterruptIfRunning) {
  query.cancel();
  return super.cancel(mayInterruptIfRunning);
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public boolean cancel(boolean mayInterruptIfRunning) {
  query.cancel();
  return super.cancel(mayInterruptIfRunning);
}

相关文章