io.ebeaninternal.server.query.QueryFutureIds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
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 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;
}
@Override
public Query getQuery() {
return call.query;
}
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
call.query.cancel();
return super.cancel(mayInterruptIfRunning);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy