mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* no effective code change: add missing @override in "io.ebean.*" package * no effective code change: add missing @override in "io.ebeaninternal.api.*" package * no effective code change: add missing @override in "io.ebeaninternal.server.*" package * no effective code change: add missing @override in "io.ebeaninternal.util.*" package * no effective code change: add missing @override in "io.ebeanservice.*" package * no effective code change: add missing @override in "src/test/java/"
42 lines
854 B
Java
42 lines
854 B
Java
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<T> extends BaseFuture<List<Object>> implements FutureIds<T> {
|
|
|
|
private final CallableQueryIds<T> call;
|
|
|
|
public QueryFutureIds(CallableQueryIds<T> call) {
|
|
super(new FutureTask<>(call));
|
|
this.call = call;
|
|
}
|
|
|
|
public FutureTask<List<Object>> getFutureTask() {
|
|
return futureTask;
|
|
}
|
|
|
|
public Transaction getTransaction() {
|
|
return call.transaction;
|
|
}
|
|
|
|
@Override
|
|
public Query<T> getQuery() {
|
|
return call.query;
|
|
}
|
|
|
|
@Override
|
|
public boolean cancel(boolean mayInterruptIfRunning) {
|
|
call.query.cancel();
|
|
return super.cancel(mayInterruptIfRunning);
|
|
}
|
|
|
|
}
|