com.avaje.ebeaninternal.server.query.QueryFutureIds Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.query;
import com.avaje.ebean.FutureIds;
import com.avaje.ebean.Query;
import com.avaje.ebean.Transaction;
import java.util.List;
import java.util.concurrent.FutureTask;
/**
* Default implementation of FutureIds.
*/
public class QueryFutureIds extends BaseFuture> implements FutureIds {
private final CallableQueryIds call;
public QueryFutureIds(CallableQueryIds call) {
super(new FutureTask<>(call));
this.call = call;
}
public FutureTask> getFutureTask() {
return futureTask;
}
public Transaction getTransaction() {
return call.transaction;
}
public Query getQuery() {
return call.query;
}
public boolean cancel(boolean mayInterruptIfRunning) {
call.query.cancel();
return super.cancel(mayInterruptIfRunning);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy