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

io.ebeaninternal.server.query.QueryFutureIds Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.query;

import io.ebean.FutureIds;
import io.ebean.Query;
import io.ebean.Transaction;

import java.util.List;
import java.util.concurrent.FutureTask;

/**
 * Default implementation of FutureIds.
 */
public final class QueryFutureIds extends BaseFuture> implements FutureIds {

  private final CallableQueryIds call;

  public QueryFutureIds(CallableQueryIds call) {
    super(new FutureTask<>(call));
    this.call = call;
  }

  public FutureTask> futureTask() {
    return futureTask;
  }

  public Transaction transaction() {
    return call.transaction;
  }

  @Override
  public Query getQuery() {
    return call.query;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy